![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to edit the crontab file | rajus19 | Shell Programming and Scripting | 2 | 05-25-2007 05:34 AM |
| Different edit crontab at Solaris..? | srilinux | SUN Solaris | 25 | 12-16-2006 11:50 PM |
| Edit Crontab | juliet | UNIX for Dummies Questions & Answers | 11 | 09-28-2006 01:32 PM |
| edit crontab without -e | d_swapneel14 | Shell Programming and Scripting | 8 | 04-11-2006 12:50 AM |
| Can't edit crontab | FredSmith | UNIX for Dummies Questions & Answers | 1 | 10-24-2005 02:12 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Crontab - Recommended way to edit?
What is the best way to modify the crontab file??
Edit the file and then use crontab 'filename' ??? I do not know how to use pico editor - so I cannot modify it this way, Any help is appreciated. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Try this:
Code:
export EDITOR=vi # or whatever editor you want to use crontab -e # edit your crontab file or create one if it doesn't exist |
|
#3
|
||||
|
||||
|
On one machine I helped on, the admin required changes to CRON to be done in the following manner ...
# crontab -l > /dir/cron.chg.YYMMDDHHMM # edit /dir/cron.chg.YYMMDDHHMM # crontab /dir/cron.chg.YYMMDDHHMM Was a bit mundane at first but was a lifesaver if something didn't work as planned - the crontab file was pretty big. |
|
#4
|
|||
|
|||
|
I edited the root cron file myself, updated and used crontab root and this updated correctly but good idea to copy it out to another file in case of any problems...
Thanks!! |
|||
| Google The UNIX and Linux Forums |