osx - automating zsh shell scripts within OS X -
is there way automate task (zsh shell script) using type of scheduler. if so, how?
for example, if running zsh shell script within system named zshprogram1.zsh within directory /users/myname/zshtest , want run @ 1:35 pm hst daily, how go doing that? also, i'm assuming work if laptop on. work if it's on in sleep mode?
check out crontab or launchctl.
for example, crontab run crontab -e
terminal , paste following line editor comes up
35 13 * * * /users/myname/zshtest/zshprogram1.zsh
to have zshprogram1.zsh run @ 1:35 pm every day. launchctl bit more complicated configure, apple recommends on crontab future, might worthwhile check out.
Comments
Post a Comment