What scheduler are you using, and how do you know that it doesn't run?
–
PeterJCLawApr 6 '10 at 21:38

I'm using the scheduled tasks application from Applications -> System Tools -> Scheduled Tasks in the Ubuntu menu. I know it doesn't run, because the work isn't getting accomplished. I think this application uses cron, because I just ran the command 'crontab -e' and there's an entry for the task I created in scheduled tasks
–
John KubeApr 6 '10 at 22:19

ah, please post the cron line. I suspect you've misunderstood (as I did at first) how it works.
–
PeterJCLawApr 6 '10 at 22:25

2 Answers
2

The scheduler most likely doesn't know how to expand ~ try giving it an absolute path instead.

EDIT, after solution found:

Another idea I had was that maybe cron was ignoring the line due to all *'s, but I couldn't replicate this. I did find that it's man page is rather unhelpful, but that wikipedia's page on cron is somewhat useful. I was going to suggest using the line:

*/1 * * * * /home/joe/Desktop/foo/my_script # JOB_ID_3

as this would run at */1 (ie every minute that divides by 1) if it continued to fail.

That's why it's a good idea to always use absolute paths for files.
–
Dennis WilliamsonApr 6 '10 at 22:42

This occurred to me, but I dismissed it as too simple an issue! Though I've fallen foul of this a number of times. The other thing I was going to suggest was that you check that it was +x, but it running correctly in shell suggested that this was also not the issue.
–
PeterJCLawApr 6 '10 at 22:45