The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-25-2003
Registered User
 

Join Date: Aug 2003
Location: Ireland
Posts: 269
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  
Old 08-25-2003
oombera's Avatar
Registered User
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
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  
Old 08-25-2003
Cameron's Avatar
Registered User
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 490
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  
Old 08-26-2003
Registered User
 

Join Date: Aug 2003
Location: Ireland
Posts: 269
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
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0