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

saving crontab

Status
Not open for further replies.

MatthewP

Programmer
Jan 16, 2001
176
GB
Hi, I can get into insert mode and type a line into crontab, but how do I actually save the file? I read that it was :wq, but I don't know what this means - if I type it it just appears as text.

Thanks,
Matt.
 
If text is appearing, you are probably in text insert mode. Hit <esc> and then do the &quot;:wq!&quot; (no quotes of course). If you wanted to save but keep working &quot;:w&quot; will do that for you...


Good luck!
 
check your saved crontab with 'crontab -l' once you follow the good instructions above
 
I tend to play it safe, normally do a &quot;crontab -l > filename&quot;, then vi the file, and once happy with the content run &quot;crontab filename&quot; to update the crontab.

There is of course the risk of forgetting to do the last step when in a hurry...
IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top