LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-19-2016, 07:47 AM   #1
ricomoss
LQ Newbie
 
Registered: Nov 2016
Posts: 2

Rep: Reputation: Disabled
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?

Last edited by ricomoss; 11-19-2016 at 07:53 AM.
 
Old 11-19-2016, 07:52 AM   #2
ricomoss
LQ Newbie
 
Registered: Nov 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] crontab job. gardenair CentOS 3 11-16-2015 04:20 AM
Crontab doesn't give the output of the file it runs in terminal pranavojha Linux - Software 3 08-24-2013 04:19 PM
qsub -hold_jid job dependency - what happens if job doesn't finish jr950 Linux - Newbie 0 02-01-2012 09:04 PM
CRON job runs, but doesn't perform the task SUSE-OES SUSE / openSUSE 2 11-20-2009 03:30 PM
[SOLVED] crontab which is written once and runs for everyone Hi_This_is_Dev Linux - Server 14 09-13-2009 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration