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

Crontab

Status
Not open for further replies.

call

Technical User
Oct 31, 2000
127
US
I need to remove an entry that the system made in the crontab we had a power supply go down.

Is this what I need to do
crontab -e
then arrow down to the line and remove it by using the x buttom like in vi editor.

Thanks,
 
crontab -e

in vi window, use arrows to go to that line

type dd to remove that line

type :wq to end vi and save new crontab version



HTH,

p5wizard
 
You may want to do this in the future. You create a copy of crontab so you don't have to edit your crontab file. For example, in your home directory (for example /home/yourname)key the following

# crontab -l > mycronfile

This creates a copy of crontab in your current directory; /home/yourname

To make changes
# cd /home/yourname
# vi mycronfile

Make your changes and save.

# crontab mycronfile

This will replace the current crontab with your and refresh the cron daemon. You'll also ahve a copy of your crontab file (mycronfile)


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top