version 1.2, 2003/02/02 06:53:14
|
version 1.4, 2003/07/18 01:50:34
|
Line 1
|
Line 1
|
#!/bin/sh |
#!/bin/sh |
ADDRESS="chronicles@chgk.info" |
ADDRESS="chronicles@chgk.info" |
#ADDRESS=boris |
#ADDRESS=boris |
PREFIX=http://znatoki.kulichki.net/boris/reports |
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" |
echo > letter.txt |
echo > letter.txt |
Line 34 s/^\(.*\)$/ \1/' |head -5 >>letter.tx
|
Line 34 s/^\(.*\)$/ \1/' |head -5 >>letter.tx
|
echo >> letter.txt |
echo >> letter.txt |
# fortune /usr/local/share/games/fortunes >> letter.txt |
# fortune /usr/local/share/games/fortunes >> letter.txt |
mail -s "Novosti v letopisi" $ADDRESS <letter.txt |
mail -s "Novosti v letopisi" $ADDRESS <letter.txt |
fi |
|
|
|
|
fi |