开发者

Cron job is schedualed but doesn't seem to be running

I have a cron job set up to open a webpage in a browser at 11 minutes past everyhour. I can run 开发者_开发知识库the script manually and everything works but when it comes to the cron job nothing seems to happen.

I'm a newbie running ubuntu 10.10, any help would be greatly appreciated


In your crontab, check to make sure that you are using the absolute path (/usr/bin/run_cron_task.pl) as oppose to the relative path (run_cron_task.pl). That's a common problem. Also, check to make sure your script is executable, meaning you can run it like ./run_cron_task.pl as oppose to perl run_cron_task.pl.

If it's still not working, post your crontab.


It's possible that your job doesn't know what X server the browse should use to display the webpage. Check the DISPLAY environment variable.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜