File tree Expand file tree Collapse file tree 1 file changed +32
-6
lines changed Expand file tree Collapse file tree 1 file changed +32
-6
lines changed Original file line number Diff line number Diff line change 77
88** atq命令** 显示系统中待执行的任务列表,也就是列出当前用户的at任务列表。
99
10- ### 语法
10+ ### 语法
1111
1212``` shell
1313atq [-V] [-q 队列] [-v]
1414```
1515
16- ### 选项
16+ ### 选项
1717
1818``` shell
1919-V:显示版本号;
2020-q:查询指定队列的任务。
2121```
2222
23- ### 实例
23+ ### 示例
24+
25+ 创建一个在10分钟后执行的任务,并列出当前用户的任务列表:
2426
2527``` shell
26- at now + 10 minutes
28+ [root@localhost ~ ] # at now + 10 minutes
2729at> echo 1111
28- at> < eot >
30+ at> < EOT >
2931job 3 at Fri Apr 26 12:56:00 2013
32+ ```
3033
31- atq
34+ 使用` atq ` 命令查看当前用户的任务列表:
35+
36+ ``` shell
37+ [root@localhost ~ ]# atq
32383 Fri Apr 26 12:56:00 2013 a root
3339```
3440
41+ 查询指定队列的任务:
3542
43+ ``` shell
44+ [root@localhost ~ ]# at -q a now + 10 minutes
45+ at> echo " Task in queue a"
46+ at> < EOT>
47+ job 4 at Fri Apr 26 13:06:00 2013
48+ ```
3649
50+ 使用` atq ` 命令查看队列` a ` 中的任务:
51+
52+ ``` shell
53+ [root@localhost ~ ]# atq -q a
54+ 4 Fri Apr 26 13:06:00 2013 a root
55+ ```
56+
57+ 显示` atq ` 命令的版本号:
58+
59+ ``` shell
60+ [root@localhost ~ ]# atq -V
61+ atq (GNU at) 3.1.20
62+ ```
You can’t perform that action at this time.
0 commit comments