Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I can login to nano or vi through Putty to my web server.

After opening nano editor by typing crontab -e, I enter the following.

# m h dom mon dow command (this comes up always at the top)

*/30 * * * * wget -q -O /dev/null

However I am uncertain what I need to do after this.

Q1. Do I need to save it? If so, how to save this file?

I can't find any command to save. There are ^Get help, ^Writeout etc.

At the top of the screen, it says the following. GNU nano 2.0.7 File: /tmp/crontab.Q1SgwM/crontab

Q2. Is this the place where this cron is stored? Then how can I open it if I want to edit/change?

Q3. Is that all I need to do? Is the cron starting automatically?

Thanks in advance.

share|improve this question
FYI curl would be more appropriate than wget in this instance. – Martin Murphy Feb 24 '11 at 19:31
up vote 9 down vote accepted

You just have to type crtl-X then Y to confirm then Enter to accept the default writing path.
File will be written in the temporary directory but crontab will manage to put it in the right place.
You can then type crontab -l and see that your line have been saved

share|improve this answer

Your Answer


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.