The current version of calendar uses different arguments and date specification
authorJoey Schulze <joey@infodrom.org>
Thu, 30 Oct 2003 09:25:49 +0000 (09:25 +0000)
committerJoey Schulze <joey@infodrom.org>
Thu, 30 Oct 2003 09:25:49 +0000 (09:25 +0000)
mail-calendar

index fd10a1d..c0fd827 100755 (executable)
@@ -74,13 +74,13 @@ esac
 
 secs=$[ $opt_advance * 86400 ]
 
-c_date=`date -d now+${secs}seconds +%d.%m`
+c_date=`date -d now+${secs}seconds +%m%d`
 s_date=`LANG=$opt_lang date -d now+${secs}seconds "+$opt_dateform"`
 
 tmp=`tempfile`
 trap 'rm -f $tmp' INT EXIT
 
-calendar -l 0 -w 0 -t $c_date > $tmp
+calendar -A 0 -t $c_date > $tmp
 
 if [ -s $tmp ]
 then
@@ -88,6 +88,6 @@ then
        echo "Subject: $opt_subject $s_date"
        echo "To: $opt_to"
        echo
-       calendar -l 0 -w 0 -t $c_date
+       cat $tmp
     ) | /usr/sbin/sendmail "$opt_to"
 fi