Jump to content

Editing crontab


Recommended Posts

Hi,

 

I am experiencing problems with crontab editing om Mandrake 10.0. The only editor I have installed is vi. I want to add a line to root's crontab, so I invoke the editor thus:

# crontab -e

 

which launches vi. I am able to write in the line I want to add, but when I exit (!wq) I end up with the following errormessage:

 

no crontab for root - using an empty one

crontab: installing new crontab

"/tmp/crontab.14449":0: bad month

errors in crontab file, can't install.

Do you want to retry the same edit?

 

If I answer Y vi displaies the line I wrote in, but when I try to save it I get the same error again. Looks like vi is writing rubbish into the file.

What's the remedy for this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...