#!/bin/bash # msg=$1 if [ z"$msg" == z"" ]; then echo "you should write your message" && exit 0 fi tmpfile=$(touch /tmp/`date '+%d-%B-%H-%M-%S'.txt`) echo "$msg" > $tmpfile gnunet-insert -n $tmpfile