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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crontabs

Status
Not open for further replies.

jseva

IS-IT--Management
Mar 26, 2001
26
US
According to AIX docs, revisions to crontabs will take effect at the next reboot. Is there a way around this? I don't want to have to reboot everytime I add something.

Please advise.
 
When you edit the crontab file ("crontab -e") and then save it, it automatically updates the cron daemon - so there is no need to do anything after a change to crontab.

Hope it helps.
Dave V.
 
Thanks, Dave! That did it.
 
Jseva,

I am just curious what doc you are referring to. Can you offer it ?

Thanks, Bill.
 
If you use the crontab command rather than editing the /usr/spool/cron/crontabs/<username> file, you don't have to boot for the changes to take effect. Using the crontab command rather than vi or some other editor to change the file is safer, too, because it detects most formatting errors, warns you and won't make the change.
 
If you do edit the crontab file using vi, there's no need to reboot to make it work. Simply issue a crontab -e and :wq it to activate the changes.
 
Or you could do it in all one fell swoop and use crontab in the first place. ;-)

(Sorry, I just couldn't resist.)
 
What are you lot going on about ;-) The question was answered in the first instance!!

Cheers.
 
vickersdc:

:)

A wise man once said &quot;Take a man fishing, you feed him for a day; teach a man to fish, you feed him for life&quot;

My only point was showing the original post-er that his/her information was flawed in that he/she looked in the wrong place for his/her answer. I applaud him/her for doing his research before posting here, but I included the link so that he/she would have the correct information for next time.

Thanks, Bill.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top