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 7
7
8
8
** atq命令** 显示系统中待执行的任务列表,也就是列出当前用户的at任务列表。
9
9
10
- ### 语法
10
+ ### 语法
11
11
12
12
``` shell
13
13
atq [-V] [-q 队列] [-v]
14
14
```
15
15
16
- ### 选项
16
+ ### 选项
17
17
18
18
``` shell
19
19
-V:显示版本号;
20
20
-q:查询指定队列的任务。
21
21
```
22
22
23
- ### 实例
23
+ ### 示例
24
+
25
+ 创建一个在10分钟后执行的任务,并列出当前用户的任务列表:
24
26
25
27
``` shell
26
- at now + 10 minutes
28
+ [root@localhost ~ ] # at now + 10 minutes
27
29
at> echo 1111
28
- at> < eot >
30
+ at> < EOT >
29
31
job 3 at Fri Apr 26 12:56:00 2013
32
+ ```
30
33
31
- atq
34
+ 使用` atq ` 命令查看当前用户的任务列表:
35
+
36
+ ``` shell
37
+ [root@localhost ~ ]# atq
32
38
3 Fri Apr 26 12:56:00 2013 a root
33
39
```
34
40
41
+ 查询指定队列的任务:
35
42
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
+ ```
36
49
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