Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Using the 'cron' scheduler' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Using the 'cron' scheduler
Authored by: RandomMarius on Apr 17, '08 01:12:14PM

Some other problems you may have:

When I opened up a GUI application using crond:

sh /usr/bin/open ~/Application.app

It did not seem to work.

I changed it to:

/usr/bin/open ~/Application.app >& /dev/null

And it worked.

I suspect not having the redirect-all at the end causes security problems as I not sure what uid's console is attached to the cron process at that time, and may be the cause of an error I received:

"com.apple.launchd[1] (0x10c650.cron[14768]): Could not setup Mach task special port 9: (os/kern) no access"

Hope this helps some people out.

PS: I used it to create template mails from an automator script I ran each morning to find people I know what has a birthday that same day.



[ Reply to This | # ]
Using the 'cron' scheduler
Authored by: robleach on Mar 25, '10 07:28:54AM

Oh wow, I hope that works! I've been so frustrated with cron and iCal script alarms not working in the middle of the night!

Rob



[ Reply to This | # ]
Using the 'cron' scheduler
Authored by: robleach on Apr 01, '10 08:02:20AM
Well, I can't confirm that it worked yet, but I have a tip to add. Turns out that the version of perl that root was using was different than the one my account was using. It would have been useful to have the STDERR output, so I changed the shell script call in my applescript wrapper to do something like this:
myscript.pl 1> stdout 2> sterr;cat stderr stdout > mail.pl
I set my cron file to run in a minute and it worked. Now I just have to see if it will work over night. Rob

[ Reply to This | # ]