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

前端 未结 12 1760
执念已碎
执念已碎 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:09

    As the previous posts didn't work for me because of some permissions issues, I found that creating a separate crontab file and adding it to the user's crontab with the -u parameter while root worked for me.

    sudo crontab -u {USERNAME} ~/{PATH_TO_CRONTAB_FILE}
    

提交回复
热议问题