mybin

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

find-reminder.sh (310B)


      1 #!/bin/bash
      2 
      3 ID="$1"
      4 atq | cut -f1 | while read job;
      5 do
      6   FILE=`at -c $job | grep 'reminder-send.sh' | cut -d ' ' -f2`
      7   if [ -n "$FILE" ]
      8   then
      9     if grep "^In-Reply-To: $ID" ~/logs/reminder/$FILE > /dev/null
     10     then
     11       echo $job
     12     fi
     13   else
     14     echo "WARNING: no file found for job: $job"
     15   fi
     16 done
     17