sumityadav / cronnix

Automatically exported from code.google.com/p/cronnix
2 stars 0 forks source link

cronnix not running on schedule #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have a simple crontab that runs:

osascript "/path/script.scpt"

In Cronnix I can 'run' this entry and it works perfectly

For some reason it won't execute at the scheduled time.

When I check crontab -l I can see that the schedule is correct.

Any help appreciated!

Original issue reported on code.google.com by yhouv...@gmail.com on 21 Dec 2011 at 2:09

GoogleCodeExporter commented 8 years ago
I realized that cron doesn't know where to find the commands in my script.  
specifying the path solved the problem! sorry to trouble you.  feel free to 
delete this post!

Original comment by yhouv...@gmail.com on 21 Dec 2011 at 7:15

GoogleCodeExporter commented 8 years ago
No worries, glad it's working now!

Happy holidays :)

Original comment by sven.a.s...@gmail.com on 21 Dec 2011 at 9:01

GoogleCodeExporter commented 8 years ago
I have exactly the same problem. However, I don't understand your solution -- 
how to specify the commands in the SCRIPT?

Thanks,
Z

Original comment by Melo.Fay...@gmail.com on 11 Mar 2012 at 7:38

GoogleCodeExporter commented 8 years ago
You need to make sure that the commands used in your shell script don't rely on 
paths you've only set in your user's PATH. The best test is to delete your PATH 
and make your script run by using full paths for your commands. Or you set the 
PATH at the start of your script to what it needs to be. (You could copy your 
user's PATH, for example.)

Hope that helps,
Sven

Original comment by sven.a.s...@gmail.com on 12 Mar 2012 at 8:37