Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When running the command crontab -e i get the following error:

no crontab for 'myusername' - using an empty one

Can anyone please help?

share|improve this question
IMHO this is a notice, not an error message... or gets your cronjob not executed? – mpy Sep 18 '13 at 6:46
Are you sure you are using crontab corectly? crontab -e ... as you now know, this edits your crontab file using $EDITOR or $VISUAL, which defaults to vi. Maby try a man crontab and see some information about it – Rat2000 Sep 18 '13 at 6:49

The reason is you are using ed editor to edit crontab, do the below steps to fix this

  1. Type in contab -e

  2. Type q and click enter, this will exit you out of ed editor

  3. Now make vi as your default editor by typing in below command

    export EDITOR

This fixed the issue for me!

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .