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.

I have connected via ssh and have added a cron job but I can't figure out how to save it. I'm still on the crontab -e page how do I save my changes?

share|improve this question

migrated from stackoverflow.com Oct 4 '12 at 6:43

This question came from our site for professional and enthusiast programmers.

3  
in vim :wq in Emacs... exit then open vim :P –  gtgaxiola Oct 4 '12 at 3:02
    
Success, thank you! –  Daniel Fein Oct 4 '12 at 3:04
    
You're welcome. –  gtgaxiola Oct 4 '12 at 3:05
    
Actually the right answer for Emacs is C-x C-s to save and C-x C-c to quit. (Just C-x C-c will offer to save any unsaved changes, too.) ... These days there'd probably be a fugly menu you can access with M-` if you don't have the mouse available. –  tripleee Oct 4 '12 at 3:30

1 Answer 1

crontab -e simply fires up the crontab file for that account in your default text editor so you can edit it.

With nano, which is the default on ubuntu, you can hit ctrl-x then choose to save.

From the comments :wq for Vim and C-x C-s to save and C-x C-c to exit for emacs.

share|improve this answer

Your Answer

 
discard

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