分页: 1 / 1

定时命令没反应。

发表于 : 2010-12-13 14:18
thereisawill
假如我想让firefox隔 1分钟就访问 XX.com
是不是这样写的?
crontab -e后:

*/1 * * * * /usr/bin/firefox http://www.XX.com/

为什么2分钟过去了,firefox没有任何反应。 :em06 :em20

Re: 定时命令没反应。

发表于 : 2010-12-13 15:04
thereisawill
上irc可解决

Re: 定时命令没反应。

发表于 : 2010-12-13 15:06
astolia
执行GUI程序需要指明 DISPLAY

如果你的DISPLAY是:0.0,就 DISPLAY=":0.0" /usr/bin/firefox http://www.XX.com/

Re: 定时命令没反应。

发表于 : 2010-12-13 15:09
eexpress
45 11 * * 1-5 msg 吃饭。

export DISPLAY=:0.0 && notify-send -h "string:sound-file:$res_path/sound/$sound" -h "int:x:600" -h "int:y:100" -i "$res_path/icon/$icon" "$t" "$w"

Re: 定时命令没反应。

发表于 : 2010-12-13 17:38
thereisawill
:em11
太感谢楼上2位了.

Re: 定时命令没反应。

发表于 : 2010-12-13 18:01
tenzu
那销魂的神码总是让人看不透啊,看不透