Skip to content

Commit 1b44017

Browse files
authored
Create at.md
1 parent 5ae74e6 commit 1b44017

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

pages.zh/linux/at.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
at 命令手册
2+
3+
功能说明:
4+
在指定时间执行一次性任务。执行结果将通过邮件发送给用户。
5+
更多信息请参阅:https://manned.org/at
6+
7+
启动 atd 守护进程:
8+
9+
systemctl start atd
10+
11+
常用用法:
12+
13+
交互式创建任务,并在 5 分钟后执行(输入完成后按 Ctrl + D):
14+
15+
at now + 5 minutes
16+
17+
交互式创建任务,在指定时间执行:
18+
19+
at {{时:分}}
20+
21+
通过标准输入指定命令,在上午 10:00 执行:
22+
23+
echo "{{命令}}" | at 1000
24+
25+
从指定文件读取命令,在下周二晚上 9:30 执行:
26+
27+
at -f {{文件路径}} 9:30 PM Tue
28+
29+
查看当前用户的所有待执行任务(等同 atq 命令):
30+
31+
at -l
32+
33+
查看指定任务的详细信息:
34+
35+
at -c {{任务编号}}

0 commit comments

Comments
 (0)