Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jan 2012 13:22:34 +0000
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Having problems running shell script from crontab
Message-ID:  <20120107132234.31d04a1c@gumby.homeunix.com>
In-Reply-To: <4F0838DF.40006@gmail.com>
References:  <4F0838DF.40006@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120107132234.31d04a1c>