Added the path etc to the start of root's crontab entry and all seemed to work 100%, cheers for the info
Michael ----- Original Message ----- From: "alex" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 08, 2001 2:59 PM Subject: [speedtouch] Re: Script > > On Sat, 2001-12-08 at 14:51, Bananaskin wrote: > > > > So do I need to replace the : > > > > ifconfig | grep ppp0 >/dev/null 2>&1 && ping -c 2 !!PPP-Partner!! 2>&1 > > > /dev/null > > > > with /pathtofile/ifconfig | /pathtofile/grep ppp0 >/dev/null 2>&1 && > > /pathtofile/ping -c 2 !!PPP-Partner!! 2>&1 > /dev/null > > > Yep, or export the PATH variable in your script before you run the > ifconfig and pings > > Alex. > > > > ?? > > > > Atm I have a seperate task running watch 300 /path/script because of the > > crontab prob > > > > Michael > > > > ----- Original Message ----- > > From: "S�bastien Richard" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Saturday, December 08, 2001 2:09 PM > > Subject: [speedtouch] Re: Script > > > > > > > In a cron, there is no $PATH variable, so you must specify the complete > > > path to a binary. > > > > > > Seb > > > > > > Bananaskin wrote: > > > > > > > > > > >As a matter of interest, does anyone have a problem with the script that > > Chris posted bringing down the ppp0 connection when run from crontab ??? I > > do, it does however work 100% when run as a script from a terminal. > > > > > > > >Michael > > > > > > > > > > > >--- > > > >Outgoing mail is certified Virus Free. > > > >Checked by AVG anti-virus system (http://www.grisoft.com). > > > >Version: 6.0.306 / Virus Database: 166 - Release Date: 06/12/2001 > > > > > > > >Liste de diffusion modem ALCATEL SpeedTouch USB > > > >Pour se d�sinscrire : > > mailto:[EMAIL PROTECTED]?subject=unsubscribe > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Liste de diffusion modem ALCATEL SpeedTouch USB > > > Pour se d�sinscrire : > > mailto:[EMAIL PROTECTED]?subject=unsubscribe > > > > > > > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.306 / Virus Database: 166 - Release Date: 06/12/2001 > > > > > > > > Liste de diffusion modem ALCATEL SpeedTouch USB > > Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe > > > > > > > > Liste de diffusion modem ALCATEL SpeedTouch USB > Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.306 / Virus Database: 166 - Release Date: 06/12/2001 Liste de diffusion modem ALCATEL SpeedTouch USB Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe
