Xaos Katawin wrote:
Hi all,
I've got this script in cron.daily. When I run the script manually, there is no problem. However when run by cron, ifconfig is not found and as a result sleep starts to leave a lot of messages for root, which sendmail subsequently chokes on (they are really big messages).
I've played with changing the permissions, but I keep getting the same problem. The script used to work when I had SuSE 7.x I didn't start to use it again until recently and found that it doesn't play nice with 9.0
#!/bin/bash wvdial & test='' while [ -z "$test" ] do sleep 5 test=`ifconfig | grep ppp` done sleep 20 ntpdate ntp.mikroskosmos.com sendmail -q /home/kyriarxos/wgetscript fetchmail -d0 -v -a #sendmail -q fetchnews #sendmail -q killall wvdial
Change : while [ -z "$test" ] do sleep 5 test=`ifconfig | grep ppp` done To : while [ -z "$test" ] do sleep 5 test=`/sbin/ifconfig | grep ppp` done -- Louis D. Richards LDR Interactive Technologies