首页 > 其他 > 详细

如何用crontab运行一个图形化界面的程序

时间:2014-04-12 01:03:50      阅读:841      评论:0      收藏:0      [点我收藏+]

crontab是linux中定时任务的

执行crontab -e可以编辑定时列表(export DISPLAY=:0 指定显示器或者export DISPLAY=localhost:0)

15 13 * * * export DISPLAY=:0 && gedit

 

1
2
3
4
5
6
7
8
9
10
root@ubuntu:~# crontab --help
crontab: invalid option -- ‘-‘
crontab: usage error: unrecognized option
usage:    crontab [-u user] file
    crontab [ -u user ] [ -i ] { -e | -l | -r }
        (default operation is replace, per 1003.2)
    -e    (edit user‘s crontab)
    -l    (list user‘s crontab)
    -r    (delete user‘s crontab)
    -i    (prompt before deleting user‘s crontab)

 

如何用crontab运行一个图形化界面的程序,布布扣,bubuko.com

如何用crontab运行一个图形化界面的程序

原文:http://www.cnblogs.com/maseng/p/3658530.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!