1
I'm trying to create a scheduled task that runs a shell script recurrently, and I'm having some trouble getting it to work. I give it the following command to run every minute:
~/Desktop/foo/my_script
But it doesn't ever run. (This command runs the shell script through the terminal no problem.) Any ideas what I'm doing wrong? Thanks!
Note: Here's my shell script:
#!/bin/bash
sleep 15
date >> output.txt
{ time ./foo > /dev/null ; } 2>> output.txt
And here's the cron line:
* * * * * /home/joe/Desktop/foo/my_script # JOB_ID_3
1What scheduler are you using, and how do you know that it doesn't run? – PeterJCLaw – 2010-04-06T21:38:27.457
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 Kube – 2010-04-06T22:19:41.370
ah, please post the cron line. I suspect you've misunderstood (as I did at first) how it works. – PeterJCLaw – 2010-04-06T22:25:28.797
I posted it above :) – John Kube – 2010-04-06T22:28:41.927