Having problems running shell script from crontab

RW rwmaillists at googlemail.com
Sat Jan 7 13:22:40 UTC 2012

On Sat, 07 Jan 2012 14:21:51 +0200
Kaya Saman wrote:
> The strange thing is that if I run this script manually 
> /root/java_restart/java_restart.sh it works fine and does what it's 
> supposed to do. 

The commonest reason for scripts that that work from a terminal
failing under cron is that the environment isn't set-up correctly.
Usually it's PATH that's missing or incomplete.

More information about the freebsd-questions mailing list