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


Click here to return to the 'crontab error' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
crontab error
Authored by: Embro on Feb 06, '02 01:10:11PM

You have it set to run at 2 minutes after every hour. I think you mean

*/2 * * * * osascript /Users/me/Documents/scriptname

to have it run every two minutes. I use CronniX to set this up.

Mark



[ Reply to This | # ]
crontab error
Authored by: Embro on Feb 06, '02 01:12:09PM

Ooops....I mean

*/1 * * * * osascript /Users/me/Documents/scriptname



[ Reply to This | # ]
crontab error
Authored by: Embro on Feb 06, '02 01:21:20PM

Agggghhh...too much caffeine

The first one was right

*/2



[ Reply to This | # ]
still won't work right
Authored by: Embro on Feb 06, '02 10:58:45PM

I've actually messed with this for some time now and not had great results. I set it to */2 to run every two minutes. Use cronniX to make your life easy. Read it's help for a full explanation of the crontab settings.

If I make the script a stand alone app and use /usr/bin/open /Users/me/Documents/myscript it runs properly although it actually switches out of the current app when it runs. That is too annoying.

I cannot get the osascript command to work right from cron. I get an error saying "syntax error: Can't get the application's event dictionary. (-2709)" although if I run this same command from terminal it works properly. This is with either just a text file or a compiled script I think.

Does this need to be put in the System Crontab rather than my user Crontab? Maybe I'll try that next.

If anyone knows how to fix this please share ;-)

Mark



[ Reply to This | # ]