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

Reply via email to