名称

at - 排队、检查或者删除作业以供以后执行

常用选项

-m      Send mail to the user when the job has
 completed even if  there was no output.
-f file Reads the job from file rather than standard input.
-l      Is an alias for atq.

例子

在本例中,at命令将在一分钟后运行commands.txt文件中指定的作业:

at now + 1 minute -f commands.txt
at next minute -f commands.txt

从现在起10小时后运行commands.txt文件中列出的作业:

at now + 10 hours -f commands.txt

9月27日20:30运行commands.txt文件中列出的作业:

at 2030 September 27 -f commands.txt

在下周日上午7点运行commands.txt文件中列出的作业:

at 7pm Sunday -f commands.txt

下周运行commands.txt文件中列出的作业:

at next week -f  commands.txt
Linux at命令

Synopsis

at     [-V] [-q queue] [-f file] [-mldbv] TIME
        at -c job [job...]
        atq [-V] [-q queue]
        atrm [-V] job [job...]
        batch
日期:2020-07-07 20:54:58 来源:oir作者:oir