Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cron not running

Status
Not open for further replies.

unixkid

IS-IT--Management
May 22, 2001
105
US
I have made a edit a script out of the crontab (root) and it appears that it's still running. IS there soemthing I need to restart?
 
that depends on what the script is you are running....
it could be caught as a dead process if you don't have the correct path in the script and/or in the .profile for the user executing the cron command
 
root is running the script and it's root's crontab. I woudl epect since cron is always running that changes take right away but something keep running the script.
 
How did you edit the script? To check the current state of the root crontab use crontab -l

The safest way to edit the script is to use crontab -e. If you're using this, also make sure you have the EDITOR environment variable set correctly.

Greg.

 
crontab -e and I commented out a line with pound # sign.
 
I'm puzzled! You are right in saying that if you edit the crontab script using crontab -e, comment out the appropriate lines and then save the changes, they should take effect immediately.

Greg.
 
The same situation happened to me last year and I had to kill the process and reboot system. My cron job ran okay after the reboot. You might have a corrupted cron job or other process out there upsetting your jobs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top