I would like to schedule a task to execute with parameters at a specific time/date in the future.
Does OS X include any such tool (even if it's command-line)? If not, are there any free or relatively cheap tools out there to accomplish this?
|
I would like to schedule a task to execute with parameters at a specific time/date in the future. Does OS X include any such tool (even if it's command-line)? If not, are there any free or relatively cheap tools out there to accomplish this? |
|||
|
|
|
While KeithB's answer is correct, actually, Commands to be run via
Having said that, it's not a very user friendly (nor Mac-like) way of scheduling commands to be run. This question on SuperUser lists a few GUI alternatives, including:
launchd Editor ($5 Shareware)
|
|||||||||||||
|
|
iCal can be used to run AppleScripts, launch applications, and perform tasks to a schedule. There are limitations to using iCal, but it is included with Mac OS X and relatively easy to set up. The limitations and a visual walk through on how to set up a scheduled AppleScript are included in the link above.
|
|||
|
|
|
You can also start Automator workflows with iCal if you just want something simple. Otherwise I would do it through launchd. |
|||||||||
|
|
There are two Unix command-line tools that do what you want.
One thing to note is that both of these will not run tasks if your machine is not running at the time they are scheduled. There are alternatives, such as anacron, that will run scheduled tasks the next time the machine boots. |
|||
|