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 ?////////// |
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 |
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 |
crond not running
still it is not running,my sendmail also running
|
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 |
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 |
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 |
All times are GMT -5. The time now is 01:55 AM. |