LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cronjob will not execute. (https://www.linuxquestions.org/questions/linux-newbie-8/cronjob-will-not-execute-117007/)

the_rydster 11-17-2003 08:59 AM

cronjob will not execute.
 
I have a script that I am trying to run using cron.

The script works no problem at the terminal.

I have tried it in cron.hourly and my crontab, with file ownership as me and root. The file is
executable, and the cron log shows something is happening:


(myself) CMD (myscript)

BUT the file is not being executed I am 100% sure.

I don't have any cron/allow or deny lists so it is not that.

david_ross 11-17-2003 02:22 PM

Have you tried using the full path:
/path/to/script

You could also try writing a log file:
/path/to/script 2>&1 > /var/log/myscript.log

the_rydster 11-18-2003 04:49 AM

Hmmmmmmmm.....

After figuring out where my messages are, the crontab daemon informs me that the command I am trying to use in my script cannot be found.

I don't understand this. At the command line the command is fine, the PATH is all set up and I have permissions to exectute.

:confused:

david_ross 11-20-2003 03:34 PM

Try using the full path.


All times are GMT -5. The time now is 03:38 AM.