The default path is /usr/bin:/bin
, and tildes do work in the user crontab, so this should work:
*/10 * * * * bash ~/Kiosk/app/content/update.sh
Have you tried replacing update.sh
with something like a say command for testing it?
@reboot
works for me when restarting but not when logging out and back in. @reboot open /test.txt
didn't work but * * * * * open /test.txt
did.
You could also save a plist like this as ~/Library/LaunchAgents/simplehttpserver.plist
:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd>
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>simplehttpserver</string>
<key>ProgramArguments</key>
<array>
<string>python</string>
<string>-m</string>
<string>SimpleHTTPServer</string>
<string>8000</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/Users/john/Kiosk/app</string>
</dict>
</plist>
It can be loaded with launchctl load ~/Library/LaunchAgents/simplehttpserver.plist
or by logging out and back in.