Editing crontab

Clearly over my head in this, but I started and despite reading, still confused.

I have a crontab that was created in terminal. It is set to run a script at a certain time. While fooling with it I created a number of crontabs as I was testing it out so that it would go off at different times.

Now, I would like to delete the crontabs that I don't want and leave the one that I do want.

When I enter crontab -e,it looks like there are previous cron action times that I set it to go off. Is this where I would delete the ones I don't want?...and how to edit it ?

Many thanks

g4 quicksilver, Mac OS X (10.4.11)

Posted on Feb 7, 2008 5:57 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 8, 2008 5:57 AM

When you have run crontab -e, you are in the vi Editor, when you have not defined an another Editor. In this entry mode, you can delete, cut, copy and paste the entrys, but not writing.

In this Mode select the line, do you want to delete and press dd, or x for selection delete. This command removes the current line or sign under the cursor. Press u for undo, when you have made a mistake.

When you want to make changes, press i for insert. Have you done the work, press esc.

Then press keys for the sign :. When you see below the sign : type wq, this write the file and quit the Editor.

Vi is not an Friendly Editor, but very flexible.
22 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Editing crontab

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.