Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

no crontab for 'myusername' - using an empty one
888

Can anyone please help?

share|improve this question
1  
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

1 Answer 1

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

    EDITOR=/usr/bin/vi
    export EDITOR
    

This fixed the issue for me!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.