version 1.9, 2009/10/27 23:24:09
|
version 1.11, 2010/03/04 16:31:46
|
Line 1
|
Line 1
|
#!/bin/sh |
#!/bin/sh |
#ADDRESS="chronicles@chgk.info" |
ADDRESS="chronicles@chgk.info" |
ADDRESS=boris |
#ADDRESS=boris |
PREFIX=http://letopis.chgk.info |
PREFIX=http://letopis.chgk.info |
if ( grep html results.txt > letter1.txt ) ; then |
if ( grep html results.txt > letter1.txt ) ; then |
echo "Sending notification to $ADDRESS" |
echo "Sending notification to $ADDRESS" |
Line 31 s/^\(.*\)$/ \1/' |head -5 >>letter.tx
|
Line 31 s/^\(.*\)$/ \1/' |head -5 >>letter.tx
|
echo "--" >> letter.txt |
echo "--" >> letter.txt |
echo "Ваш робот" >> letter.txt |
echo "Ваш робот" >> letter.txt |
echo >> letter.txt |
echo >> letter.txt |
fortune lec >> letter.txt |
# fortune lec >> letter.txt |
mail -s "Novosti v letopisi" $ADDRESS <letter.txt |
mail -s "Novosti v letopisi" $ADDRESS <letter.txt |
fi |
fi |