开发者

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

开发者 https://www.devze.com 2023-03-02 19:22 出处:网络
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 seem

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

精彩评论

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