简体   繁体   中英

Manually start and stop CRON on OS X

I would like to be able to test a server side process in my local dev env using a CRON task that runs every minute. However I do not want this to run every minute of every day, just when I need to test the process.

Is there some Terminal command I can use to add a CRON task and another to do the reverse (remove it).

Ideally I'd then like to execute this command via a tool like Shuttle so that I can start/stop the CRON from the taskbar as and when required.

In the end I abandoned this idea and used an app called CronniX to manually start and stop a local CRON process:

https://code.google.com/p/cronnix/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM