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

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

    I did 2 things to solve this problem.

    1. I touched the crontab file, described in this link coderwall.com/p/ry9jwg (Thanks @Andy).
    2. Used Emacs instead of my default vim: EDITOR=emacs crontab -e (I have no idea why vim does not work)

    crontab -lnow prints the cronjobs. Now I only need to figure out why the cronjobs are still not running ;-)

提交回复
热议问题