Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 I do crontab -e, are the changes applied immediately when I save the file, or do I have to exit vim for it to be applied?

share|improve this question
up vote 7 down vote accepted

It waits until you exit the editor. From the manpage:

The -e option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit from the editor, the modified crontab will be installed automatically.

You can also tell by just watching stdout; it waits until you exit the editor and then outputs:

crontab: installing new crontab

share|improve this answer
    
Yeah, I noticed that, but wanted to make sure. After all, it could have printed it to stdout when I saved, "or something". Thanks for the confirmation. – ripper234 Mar 18 '11 at 19:09

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.