Why I've got no crontab entry on OS X when using vim?

前端 未结 12 1757
执念已碎
执念已碎 2020-12-07 07:41

I would like to use cron on my Mac. I choose it over launchd, because I want to be able to use my new knowledge on Linux as well. However, I cannot seem to get

12条回答
  •  旧巷少年郎
    2020-12-07 08:17

    In user crontab (crontab -e) do not put the user field.

    Correct cron is:

    0-59 * * * * echo "Hello World"
    

    Syntax with user field is for /etc/crontab only:

    0-59 * * * * mollerhoj3 echo "Hello World"
    

提交回复
热议问题