Mailinglist Archive: opensuse (2271 mails)

< Previous Next >
script in cron.daily
  • From: Xaos Katawin <chaos@xxxxxxx>
  • Date: Tue, 27 Apr 2004 14:57:22 +0300
  • Message-id: <20040427115722.GB15230@xxxxxxxxxxxxxx>
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


< Previous Next >