On Tue, 12 Oct 1999 [EMAIL PROTECTED] wrote: > I set up a crontab for root to run a script. The script was written for > bash. I found out that cron runs under sh? sh is a symlink to bash. > When the job kicks off, it can't > find ifconfig or grep, which are part of the script. scripts don't have a PATH environment set. Do export PATH="$PATH:/usr/bin:/bin:/usr/sbin:/sbin" at the beginning of the script. Alternatively, use /sbin/ifconfig instead of just ifconfig. LLaP bero
- [newbie] BASHing My Crontab BryanMoorehead
- Re: [newbie] BASHing My Crontab Bero
- Re: [newbie] BASHing My Crontab Simon Norris
- Re: [newbie] BASHing My Crontab Steve Philp
- Re: [newbie] BASHing My Crontab yacketta
- Re: [newbie] BASHing My Crontab BryanMoorehead