LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-09-2016, 03:38 PM   #1
abhisheks77
Member
 
Registered: Apr 2014
Posts: 63

Rep: Reputation: Disabled
Cron not working


Hi,
It is SLES 10.3 VM. Suddenly cron stopped working on this and I am not able to figure out, where it is failing. It is not running with even root. I gave a simple job of redirection of 'date' command, that also doesn't work. I restarted cron service and still it is same.
PHP Code:
vmprdt23:~ # ps -ef | grep -i cron
 
root 24421 1 0 16:56 00:00:00 /usr/sbin/cron
 root 29262 28708 0 19
:36 pts/0 00:00:00 grep -i cron
 vmprdt23
:~ # /etc/init.d/cron status
 
Checking for Cronrunning
 vmprdt23
:~ #
 
vmprdt23:~ # crontab -l | grep -i date
 
37 19 * * * /bin/date >> /var/tmp/date_0
 vmprdt23
:~ 
Below is from /var/log/messages, not sure, what it means
PHP Code:
Mar  8 19:37:01 vmprdt23 /usr/sbin/cron[24421]: (rootRELOAD (tabs/root
Any help on this please ?

Last edited by abhisheks77; 03-09-2016 at 03:51 PM.
 
Old 03-27-2016, 01:20 AM   #2
the dsc
Member
 
Registered: May 2009
Distribution: Debian
Posts: 175
Blog Entries: 243

Rep: Reputation: 47
With the risk of being too obvious and/or utterly wrong, have you tried running this test command, instead of in a specific given minute, minute by minute? ( */1 * * * ) And giving time for cron to reload the cron tabs?

I'm afraid it may be just reloading the crontab in that very same minute but never running the actual command, as it's not repeated after that.

But that's just a wild guess, I'm quite clueless.


Nah, now that I think about it, it barely makes sense, you must have other stuff on cron and noticed it isn't working already...

Last edited by the dsc; 03-27-2016 at 01:21 AM.
 
Old 03-28-2016, 11:02 AM   #3
ember1205
Member
 
Registered: Oct 2014
Posts: 176

Rep: Reputation: 16
Step one is to understand whether or not the cron daemon is running. Step two is to understand whether or not the daemon is reading in your cron job (how and where did you add it to the system?). Step three is to validate that the daemon is not encountering an error when attempting to run your command.

From what I see in the info you've posted, it appears that cron has reloaded at 7:37PM, which is when you had a job set to run. The date redirection would seem to be able to execute, but A) I have no idea whether you installed that job as root or some other user (and it matters since you're trying to write to a file in an area that would likely need root permissions) and B) you didn't show whether or not the redirected data created a file at all and whether there was anything in it.
 
  


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
SVN working copy shared via NFS or local SVN working copies + cron job? deoren Linux - Server 2 10-04-2013 09:11 AM
[SOLVED] Script not working in cron but working fine manually jasperux Linux - Newbie 2 07-04-2012 11:28 PM
/USR/SBIN/CRON --> Suspicious Capital Letter, cron is not working??? arfal Linux - Server 10 06-22-2012 06:40 AM
cron.daily, cron.weekly not working mwhite74 Linux - Server 2 06-07-2007 09:51 AM
cron not working from crontab nor form /etc/cron/cron.d. What did SuSE change? JZL240I-U SUSE / openSUSE 11 01-04-2007 01:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:16 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