The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 08:34 AM
Different edit crontab at Solaris..? srilinux SUN Solaris 25 12-17-2006 02:50 AM
Edit Crontab juliet UNIX for Dummies Questions & Answers 11 09-28-2006 04:32 PM
edit crontab without -e d_swapneel14 Shell Programming and Scripting 8 04-11-2006 03:50 AM
Can't edit crontab FredSmith UNIX for Dummies Questions & Answers 1 10-24-2005 05:12 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-25-2003
frustrated1 frustrated1 is offline
Registered User
  
 

Join Date: Aug 2003
Location: Ireland
Posts: 278
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.
  #2 (permalink)  
Old 08-25-2003
oombera's Avatar
oombera oombera is offline Forum Advisor  
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 (permalink)  
Old 08-25-2003
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 499
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 (permalink)  
Old 08-26-2003
frustrated1 frustrated1 is offline
Registered User
  
 

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

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0