mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

reminder-queue.sh (346B)


      1 #!/usr/bin/zsh
      2 
      3 NAME=$({date +%s; echo --; basename `mktemp`} | tr -d '\n')
      4 cat > ~/logs/reminder/$NAME.origmail
      5 cat ~/logs/reminder/$NAME.origmail | ~/bin/reminder.pl > ~/logs/reminder/$NAME
      6 echo "$NAME `date +%s` $@" >> ~/logs/reminders
      7 (echo "reminder-send.sh $NAME" | at "$@" 2>> ~/logs/reminders) \
      8   && echo "Queued reminder $NAME for $@"
      9