2013-05-07 From time to time, I use at(1) to schedule a reminder mail to my- self at some time in the future. Doing so was always a bit too much work in my eyes: $ at now + 2 weeks warning: commands will be executed using /bin/sh at> mail -s "a good subject" meillo at> some description text at> job 29 at Wed May 7 22:30:00 2013 Recently, I came across the concept of ``Wiedervorlage'', typical for German bureaucracy and lawyers, meaning a ``bring forward file''. This is exactly what I wanted. Thus, I wrote a script wv, which wraps around at(1) and mail(1). With wv(1), the same reminder message is scheduled with: $ wv now + 2 weeks Subject: a good subject some description text warning: commands will be executed using /bin/sh job 30 at Wed May 22 22:54:00 2013 The script itself: #!/bin/sh # # wv - Wiedervorlage (bring forward file) # schedule a reminder mail to yourself at a given date using at(1) # # markus schnalke queue=w listone() { atq -q "$queue" | awk "/^$1\t/ {sub(/ $queue .*/,\"\");print}" at -c "$1" | sed ' 1,/^# wv/d; /^mail /{s,[^"]*",,; s,".*,,}; s,^,\t, ' } list() { if [ $# -eq 0 ] ; then atq -q "$queue" | while read id rest ; do listone "$id" done else for i in "$@" ; do listone "$i" done fi } if [ $# -eq 0 ] ; then cat >&2 <