LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Crontab says a job runs, but it doesn't (https://www.linuxquestions.org/questions/linux-software-2/crontab-says-a-job-runs-but-it-doesnt-4175593848/)

ricomoss 11-19-2016 07:47 AM

Crontab says a job runs, but it doesn't
 
I've setup a few cron jobs and for some reason the jobs won't actually run. I've searched the interwebs looking for some help, but can't seem to get anything to work.

My crontab looks like:

Code:

0 3 * * * /bin/bash /home/ricomoss/workspace/scripts/crons/my_script1.sh
*/3 * * * * /bin/bash /home/ricomoss/workspace/scripts/crons/my_script2.sh

I see the following entry in syslog:

Code:

Nov 19 06:42:01 fenster CRON[15201]: (ricomoss) CMD (/bin/bash /home/ricomoss/workspace/scripts/crons/my_script2.sh)
My script has an explicit option for logging to a file /var/log/crons/my_script2.log. If I tail the log I don't see anything happening. The scripts will sync folders on a remote system. I've verified the sync does not happen.

If I run either script manually I see entries in the /var/log/crons/my_script[1,2].log files. I also see the sync happen remotely.

Any suggestions?

ricomoss 11-19-2016 07:52 AM

I figured out the problem. There was a postfix mail sent that I missed explaining there was an error in the script. I wasn't explicit on the path of a sync tool I was using. Worked immediately after the fix.


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