The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cron not running .. please help beisaikong Shell Programming and Scripting 2 07-12-2007 07:05 AM
cron job is not running Suguna UNIX for Advanced & Expert Users 3 09-28-2006 09:11 AM
Cron Job Not Running nag_sundaram HP-UX 1 10-17-2005 10:38 AM
running cron jobs ted Shell Programming and Scripting 1 05-19-2004 12:35 PM
not running in cron ajnabi UNIX for Advanced & Expert Users 4 07-11-2003 02:35 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-10-2008
garric garric is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 99
Cron not running

Hello All,

I have installed a few crons on a machine. But for some reason the crons just don't run. I have checked the permissions on the files and also restarted the cron daemon. But it doesn't seem ti help. Can anyone suggest any other things I can do to get it running again?

Regards,
Garric
  #2 (permalink)  
Old 04-10-2008
matt.d's Avatar
matt.d matt.d is offline
Registered User
  
 

Join Date: Feb 2008
Location: /dev/null
Posts: 62
Maybe there are errors the script(s) that are cronned. Do the things that are cronned run on their own without errors?
  #3 (permalink)  
Old 04-10-2008
garric garric is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 99
No. To test, I am just running this

0 4 * * * /bin/date >> /tmp/test1
  #4 (permalink)  
Old 04-10-2008
matt.d's Avatar
matt.d matt.d is offline
Registered User
  
 

Join Date: Feb 2008
Location: /dev/null
Posts: 62
Please post the output of anything in /var/adm/syslog/syslog.log at around 4:00 AM and ps -ef | grep cron
  #5 (permalink)  
Old 04-10-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
And check your mail; usually you get an email with the output from a command if it generated any (such as when there was an error, with any decently implemented command).
  #6 (permalink)  
Old 04-11-2008
wempy's Avatar
wempy wempy is offline
Registered User
  
 

Join Date: Jun 2006
Location: Harpenden, UK
Posts: 208
What OS are you using? I remember chasing just this problem a while ago, having switched from Solaris to Suse. On Solaris just dropping a file into /var/spool/cron worked, but on Linux you have to get crond to reread it by
Code:
crontab <file> -u user
  #7 (permalink)  
Old 04-11-2008
garric garric is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 99
Hi,

I dont have /var/adm/syslog/syslog.log file. I checked in /var/log/messages and there seemed to be no log there as well.

Here is the output from the ps command

# ps -ef | grep cron
root 7292 1 0 Apr10 ? 00:00:00 /usr/sbin/cron
root 29157 28970 0 18:02 pts/9 00:00:00 grep cron
Sponsored Links
Closed Thread

Bookmarks

Tags
linux, solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0