linux命令:at

来源:互联网 发布:php做后端 编辑:程序博客网 时间:2024/06/06 04:29

一、启动at服务

1、/etc/init.d/atd {start|stop|restart|condrestart|status}

或者service atd {start|stop|restart|status}

2、加入开机启动

chkconfig --level 2345 atd on

3、权限设置

 /etc/at.allow 与 /etc/at.deny

二、at使用案例

命令:at[参数][时间]

1、增加计划任务

a、

[root@localhost ~]# at 17:20 tomorrow

at> date >/root/2013.log         

at> <EOT>

job 8 at 2013-01-06 17:20

[root@localhost ~]#

2、查看计划任务列表

atq

3、查看任务内容

at -c taskNO

4、删除计划任务

atrm taskNO




原创粉丝点击