Im trying to run a simple script with crontab and it does not run, I tried to write the output to log but it doesn't write anything, here is what i did:
crontab -e
then I have added my shell script (Which it running perfect if I run it manually):
*/1 * * * * /script/check.sh > /script/output.log
(yes, I need to run this script every minute), its simple script that check if another script is running.
any idea why its not running from the crontab but indeed running well from console?
BTW: I have direct admin, and if Im running it from there it running well, But I need root permissions, thats why Im using the crontab.
Thanks in advance!
Eran.
$PATH, that are set in.profile? No shell startup scripts are run when a program is run fromcron. - Barmarecho runningin the script, does it work? - Barmar