Diff for scripts/shell/sms/sity.sk/sms.sh between version 1.9 and 1.10
| version 1.9, 2002/06/18 07:12:43 |
version 1.10, 2002/06/18 13:57:44 |
| Line 76 GET -H "Cookie: SITY=$COOKIE" \ |
|
| Line 76 GET -H "Cookie: SITY=$COOKIE" \ |
|
| |
|
| smss_left=`grep "Tento mesiac" tmp2.html | sed 's/.*va \([0-9]*\) spr.*/\1/'` |
smss_left=`grep "Tento mesiac" tmp2.html | sed 's/.*va \([0-9]*\) spr.*/\1/'` |
| |
|
| if [ $smss_left ]; then |
if [ "$smss_left" ]; then |
| echo "Message sent. $smss_left SMSs left for this month." |
echo "Message sent. $smss_left SMSs left for this month." |
| # delete unnecessary files, now leaving for debug.. |
# delete unnecessary files, now leaving for debug.. |
| rm tmp.html |
rm -f tmp.html |
| rm tmp2.html |
rm -f tmp2.html |
| else |
else |
| echo 'Something went wrong, see debug files (tmp.html, tmp2.html).' |
echo 'Something went wrong, see debug files (tmp.html, tmp2.html).' |
| fi |
fi |
Platon Group <platon@platon.org> http://platon.org/
|
|