Something along the lines of;
!/bin/bash -u
At the beginning of the script? The idea is to change the shell of the
script currently running to be bash, and when the script terminates, control
returns to sh.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, October 12, 1999 1:26 PM
Subject: [newbie] BASHing My Crontab
Hey Scripting Gurus,
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? When the job kicks off, it
can't
find ifconfig or grep, which are part of the script. Email is sent to root
"ifconfig : command not found" "grep : command not found". Is it possible
to
make ifconfig and grep "available" to sh? Is it possible to force cron to
run
under bash?
Does what I am asking make any sense?
After finally hashing out the script, I never thought I would hit a brick
wall
with cron :-(
Thanks,
Bryan