曲径通幽论坛

标题: atq --显示待执行的作业 [打印本页]

作者: beyes    时间: 2011-5-7 20:14
标题: atq --显示待执行的作业
atq 命令用来显示待执行的作业。这些待执行的作业往往通过 at 命令指定。

一般用法即简单的执行该指令且不带任何参数:
[root@centos shell]# at -f atcommand.txt 20:30
job 5 at 2011-05-07 20:30
[root@centos shell]# at -f atcommand.txt 20:35
job 6 at 2011-05-07 20:35
[root@centos shell]# at -f atcommand.txt 20:40
job 7 at 2011-05-07 20:40
[root@centos shell]# atq
6       2011-05-07 20:35 a root
5       2011-05-07 20:30 a root
2       2011-05-08 18:20 a root
7       2011-05-07 20:40 a root
像上面,用 at 命令指定了 3 个作业(其中早先时候指定了一个每天 18:20 的作业),所以用 atq 显示出共有 4 个待执行的作业。在输出中,a 表示这些作业队列的优先级为最高(共有 a-z 26个优先级)。该命令可以使用 -q 参数以查询特定优先级的队列。比如 atq -q x 。

at 指令参考:http://www.groad.net/bbs/read.php?tid-1557.html




欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) Powered by Discuz! X3.2