Click to See Complete Forum and Search --> : cron not working?


Etherphyte
11-13-2000, 01:49 PM
Hello,
Here is my issue:
crond does not seem to be functioning. ps -aux shows /sbin/crond -l8 running, but cron jobs are not being done. I have the entry
* * * * * touch /tmp/crond.running, but the file never shows up. None of it seems to be happening. It was running earlier this week, because my cron entry to updatedb was happening everyday at 2 am like it was supposed to, but today i noticed that locate was not showing new files. I added the touch /tmp/crond.running line and restarted crond, but nothing happened. Anyone know why cron isn't working and how I can fix this? It is quite bothersome.
Thanks,
Ad

Unruly
11-13-2000, 08:08 PM
errm, try adding a time in which cron will start up? like, 00 for hourly... ::shrugs:: I dunno

Harvey
11-13-2000, 11:57 PM
I see by using all *'s that it probably should run the command every second of every minute of everyday and all that stuff.. not sure why it's working. but try this.
also crontab is user specfic just in case you didn't know


crontab -e (this will edit your crontab files)
when you're done, save it, and do
crontab -l
to make sure everything is in there.

try changing it to...
1 * * * * command

maybe put a semi colon at the end if that doesn't work... that should make it run every minute.


------------------
Help me I'm Harvey!

klamath
11-14-2000, 12:02 AM
BTW, all stars means once per minute, every minute (not per second). So '1 * * * *' would mean once per hour on the first minute of the hour (e.g. 1:01, 2:01, 3:01).

------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the BBB (http://bbb.sourceforge.net)

Etherphyte
11-14-2000, 01:45 AM
Thanks for the help guys, I got it working again. I ended up removing the crond binary and adding in a new one from the package from slackware's ftp. Kind of a loophole, but it works now. http://www.linuxnewbie.org/ubb/smile.gif
-Ad

------------------
Trouble Brewing:

su
*********
root@all.evil:~#
hehehe....
http://fade.to/etherphyte