--- reports/sendcalendar.sh 2003/05/22 18:01:50 1.1 +++ reports/sendcalendar.sh 2007/08/12 21:49:59 1.4 @@ -1,6 +1,6 @@ #!/bin/sh -#ADDRESS="chronicles@chgk.info" -ADDRESS=boris +ADDRESS="chronicles@chgk.info" +#ADDRESS=boris URL=http://letopis.chgk.info/calendar.html echo "Sending notification to $ADDRESS" @@ -15,13 +15,12 @@ s//\./ s/<[^>]*>//g s/<[^>]*$//g s/^[^<]*>//g -s/<//g +s/<.*@.*>/
/g /^[ ]*$/d s/^.$//' calendar.html>> 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