[TriLUG] Bash Script in cron job

sholton at mindspring.com sholton at mindspring.com
Wed Feb 22 16:33:35 EST 2006


Try running the command using 'at':

# at now+1minute
   /root/hosts.deny.sh
^d

If that works, then you're likely looking at an environment problem,
and likelt it's PATH.

The PATH available to cron is likely much more limited than what you
use in your everyday shell (which 'at' will inherit.)

Also check your (local) email. cron may well be mailing you the 
scriptsplat if things are failing badly.



-- 
Steve Holton
sholton at mindspring.com
"Convenience causes blindness. Think about it."




More information about the TriLUG mailing list