Linux命令:atq

列出当前用户的at任务列表

2024-12-31 17:39:16

命令行command

补充说明

atq命令 显示系统中待执行的任务列表,也就是列出当前用户的at任务列表。

语法

atq [-V] [-q 队列] [-v]

选项

-V:显示版本号;
-q:查询指定队列的任务。

示例

创建一个在10分钟后执行的任务,并列出当前用户的任务列表:

[root@localhost ~]# at now + 10 minutes
at> echo 1111
at> <EOT>
job 3 at Fri Apr 26 12:56:00 2013

使用atq命令查看当前用户的任务列表:

[root@localhost ~]# atq
3       Fri Apr 26 12:56:00 2013 a root

查询指定队列的任务:

[root@localhost ~]# at -q a now + 10 minutes
at> echo "Task in queue a"
at> <EOT>
job 4 at Fri Apr 26 13:06:00 2013

使用atq命令查看队列a中的任务:

[root@localhost ~]# atq -q a
4       Fri Apr 26 13:06:00 2013 a root

显示atq命令的版本号:

[root@localhost ~]# atq -V
atq (GNU at) 3.1.20

评论

静谧以待,您的评论将是点睛之笔

撰写首个评论,启程你的前端奇妙之旅

is a Wiki for programming enthusiasts and professionals, organizing knowledge on programming.

Connect With Me

I have a fair amount of knowledge of Javascript, Typescript, VueJs, and Nuxt. If you have an interesting idea, either open source or paid let's connect.

Sent Mail
© 2024-2025 © . All rights reserved.