|
#1
| |||
| |||
| using crontab to run workflow apps i've created? in windows i had task manager to schedule certain tasks at a specific time and at specified intervals. apple has this thing called automator (which i hear is only as of this past major release of the OS). i didnt get it at first, but after a few google sessions, i understood the dynamics and began creating helpful little workflows. i then saved them as applications so they appear in my home dir as filename.app. i realized that that was where automator's usefulness stopped. i could specify a task, but not when and how often to run it. being a former linux advocate i remembered that nifty little tool, cron! after some google'ing, i found an older post saying that it was indeed possible to run these *.app files using dcron or anacron. google'ed a refresher on simple crontabs and added this via crontab -e Quote:
but... it's not working. is there some fundamental piece i've overlooked? i know that these workflows function properly as i've tested them thoroughly awhile ago, i had one in my startup list to have a new wallpaper everytime i turned the machine on. so i KNOW that one works. i know that the path specified in the crontab is the path where those files exist. checked caps and everything. i'm at a roadblock.any help is appreciated! ryan Last edited by kraylus; January 22nd, 2007 at 03:09 AM. |
|
#2
| ||||
| ||||
| Applications aren't executable via a shell command since they are actually directories whose contents are layed out in a specific way, and which "look like" applications to the Finder. Try using the open command to launch these applications: Code: 30 * * * * open /Users/myhomedir/RTdesktop.app @hourly open /Users/myhomedir/STdesktop.app |
|
#3
| |||
| |||
| on closer inspection i come to find that the cli views these *.app files as folders (granted i knew that they were just big package of stuff, but figured you have to invoke a special... well, whatever). digging inside i figured out which piece you actually need to invoke with cron in order to run your workflow. Quote:
Quote:
so yay! it works! check it out!. updated every 30 min. 24/7/365. hope this bit of info helps others, ryan Last edited by kraylus; January 22nd, 2007 at 03:09 AM. |
|
#4
| |||
| |||
| Quote:
Last edited by kraylus; January 22nd, 2007 at 01:02 AM. |