系统管理指南:高级管理

at 命令的说明

提交 at 作业文件需执行以下步骤:

  1. 调用 at 实用程序并指定命令执行时间。

  2. 键入以后要执行的命令或脚本。


    注 –

    如果此命令或脚本的输出很重要,请确保将输出定向到一个文件中,以便以后检查。


例如,以下 at 作业将在 7 月的最后一天接近午夜时删除用户帐户 smithcore 文件。


$ at 11:45pm July 31
at> rm /home/smith/*core*
at> Press Control-d
commands will be executed using /bin/csh
job 933486300.a at Tue Jul 31 23:45:00 2004