Diff for /reports/sendcalendar.sh between versions 1.1 and 1.5

version 1.1, 2003/05/22 18:01:50 version 1.5, 2007/08/21 03:57:16
Line 1 Line 1
 #!/bin/sh  #!/bin/sh
 #ADDRESS="chronicles@chgk.info"  ADDRESS="chronicles@chgk.info"
 ADDRESS=boris  #ADDRESS=boris
 URL=http://letopis.chgk.info/calendar.html  URL=http://letopis.chgk.info/calendar.html
   
 echo "Sending notification to $ADDRESS"  echo "Sending notification to $ADDRESS"
Line 15  s/<tr>/\./ Line 15  s/<tr>/\./
 s/<[^>]*>//g  s/<[^>]*>//g
 s/<[^>]*$//g  s/<[^>]*$//g
 s/^[^<]*>//g  s/^[^<]*>//g
 s/&lt;/</g  s/&lt;[a-zA-Z\._0-9-]*@[a-zA-Z\._0-9-]*&gt;/<address>/g
 s/&gt;/>/g  
 /^[     ]*$/d  /^[     ]*$/d
 s/^.$//' calendar.html>> calendar.txt  s/^.$//' calendar.html>> calendar.txt
 echo >> calendar.txt  echo >> calendar.txt
 echo "--" >> calendar.txt  echo "--" >> calendar.txt
 echo "Ваш робот" >> calendar.txt  echo "Ваш робот" >> calendar.txt
 echo >> calendar.txt  echo >> calendar.txt
 # fortune /usr/local/share/games/fortunes >> letter.txt  fortune lec >> calendar.txt
 mail -s "Novosti v kalendare" $ADDRESS < calendar.txt  mail -s "Novosti v kalendare" $ADDRESS < calendar.txt

Removed from v.1.1  
changed lines
  Added in v.1.5


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>