3

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?

8

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

  • 1
    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

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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