LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2004, 02:58 AM   #1
praveenv
Member
 
Registered: Aug 2004
Location: India
Posts: 54

Rep: Reputation: 15
crond not running


Hi Readers

I have the following file(Using redhat fedora core-2)

[ /var /spool /cron /crontab ] containing following entries
00-55 * * 8,10 2 echo "cron has benn running"

when I check "crontab -l " it is also displaying above entry, and aslo my "crond" service running , but no message given in "echo" displaying, even I checked my mail

why ?//////////
 
Old 08-31-2004, 03:15 AM   #2
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
Just try to redirect the output in the crontab mebe ur sendmail is not either installed or mebe its not running or mebe an issue with the mailbox dir configuration.

[ /var /spool /cron /crontab ] containing following entries
11 01 * * * echo "cron has benn running" >> /home/nitin/cron_test


.... Nitin Batta ....
http://nitinb.blogspot.com

__________________
If this helped you, please take the time to rate the value of this post by clicking the affero button
 
Old 08-31-2004, 03:17 AM   #3
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
Sorry forgot to put it :

Please try and modify the crontab entry to

11 01 * * * echo "cron has benn running" >> /home/nitin/cron_test

This will help you bypass any mail configuration issues and also you can check the file u specify (/home/nitin/cron_test in my case above) at the time u schedule to run the script.


.... Nitin Batta ....
http://nitinb.blogspot.com

__________________
If this helped you, please take the time to rate the value of this post by clicking the affero button
 
Old 08-31-2004, 03:38 AM   #4
praveenv
Member
 
Registered: Aug 2004
Location: India
Posts: 54

Original Poster
Rep: Reputation: 15
crond not running

still it is not running,my sendmail also running
 
Old 08-31-2004, 05:01 AM   #5
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
Please paste a output of the crontab -l command

Helps in better debugging mate



.... Nitin Batta ....
http://nitinb.blogspot.com

__________________
If this helped you, please take the time to rate the value of this post by clicking the affero button
 
Old 08-31-2004, 06:43 AM   #6
praveenv
Member
 
Registered: Aug 2004
Location: India
Posts: 54

Original Poster
Rep: Reputation: 15
crond not running

OUTPUT OF "crontab -l "


# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (cron.txt installed on Tue Aug 31 13:58:46 2004)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)

11 01 * * * echo "cron has benn running" >> /root/cron_test
 
Old 08-31-2004, 08:03 AM   #7
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
Hi,

The crontab is defined as
<code>
minute hour day month weekday command

Minute - Minutes after the hour (0-59).
Hour - 24-hour format (0-23).
Day - Day of the month (1-31).
Month - Month of the year (1-12).
Weekday - Day of the week. (0-6; the 0 refers to Sunday).
</code>

Ideally for you the echo command will execute at 1:11 am your system time.

you will see output in your file only at 1:11 am your system time.

Also u should place the echo command in crontab for *root* or some user who can write to /root/cron_test

In case you want to run cron just to test it you can modify the entry to look like :

* * * * * echo "cron has benn running" >> /root/cron_test

So that it executes at every minute.

Last but not the least if it still does not work please check if the crond is running.

If not please start it.

You can check if crond is running by running :

ps -ef |grep cron



.... Nitin Batta ....
http://nitinb.blogspot.com

__________________
If this helped you, please take the time to rate the value of this post by clicking the affero button
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
crond problem branden_burger Linux - General 3 03-25-2005 05:03 PM
problem running crond wakeupatul Linux - General 1 04-20-2004 01:28 PM
ps -aux output: CROND running repeatedly redhatman Linux - Newbie 1 03-29-2004 08:51 PM
Crond running to many processes <defunct> tpfraz Linux - General 1 01-13-2004 07:03 AM
Crond jimval7 Linux - General 2 03-06-2002 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:15 AM.

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