当前位置:首页 > 服务器类 > Linux服务器 > > Linux指令篇:日期时间排程--at

Linux指令篇:日期时间排程--at

点击次数:24 次 发布日期:2008-11-29 14:34:57 作者:源代码网
源代码网推荐
源代码网推荐
源代码网推荐  名称 : at
源代码网推荐  
源代码网推荐  使用权限 : 所有使用者
源代码网推荐  
源代码网推荐  使用方式 : at -V [-q queue] [-f file] [-mldbv] TIME
源代码网推荐  
源代码网推荐  说明 : at 可以让使用者指定在 TIME 这个特定时刻执行某个程序或指令,TIME 的格式是 HH:MM其中的 HH 为小时,MM 为分钟,甚至你也可以指定 am, pm, midnight, noon, teatime(就是下午 4 点锺)等口语词。
源代码网推荐  
源代码网推荐  如果想要指定超过一天内的时间,则可以用 MMDDYY 或者 MM/DD/YY 的格式,其中 MM 是分钟,DD 是第几日,YY 是指年份。另外,使用者甚至也可以使用像是 now + 时间间隔来弹性指定时间,其中的时间间隔可以是 minutes, hours, days, weeks。
源代码网推荐  
源代码网推荐  另外,使用者也可指定 today 或 tomorrow 来表示今天或明天。当指定了时间并按下 enter 之后,at 会进入交谈模式并要求输入指令或程序,当你输入完后按下 ctrl+D 即可完成所有动作,至于执行的结果将会寄回你的帐号中。
源代码网推荐  
源代码网推荐  参数 :
源代码网推荐  
源代码网推荐  -V : 印出版本编号
源代码网推荐  -q : 使用指定的伫列(Queue)来储存,at 的资料是存放在所谓的 queue 中,使用者可以同时使用多个 queue,而 queue 的编号为 a, b, c... z 以及 A, B, ... Z 共 52 个
源代码网推荐  -m : 即使程序/指令执行完成后没有输出结果, 也要寄封信给使用者
源代码网推荐  -f file : 读入预先写好的命令档。使用者不一定要使用交谈模式来输入,可以先将所有的指定先写入档案后再一次读入
源代码网推荐  -l : 列出所有的指定 (使用者也可以直接使用 atq 而不用 at -l)
源代码网推荐  -d : 删除指定 (使用者也可以直接使用 atrm 而不用 at -d)
源代码网推荐  -v : 列出所有已经完成但尚未删除的指定
源代码网推荐  
源代码网推荐  例子 :
源代码网推荐  三天后的下午 5 点锺执行 /bin/ls :
源代码网推荐   at 5pm + 3 days /bin/ls
源代码网推荐  
源代码网推荐  三个星期后的下午 5 点锺执行 /bin/ls :
源代码网推荐   at 5pm + 2 weeks /bin/ls
源代码网推荐  
源代码网推荐  明天的 17:20 执行 /bin/date :
源代码网推荐   at 17:20 tomorrow /bin/date
源代码网推荐  
源代码网推荐  1999 年的最后一天的最后一分钟印出 the end of world !
源代码网推荐   at 23:59 12/31/1999 echo the end of world !
源代码网推荐  
源代码网推荐  
源代码网推荐
源代码网推荐
源代码网推荐
源代码网推荐
源代码网供稿.
网友评论 (0)
会员中心
服务器类
本站推荐
服务器类之精华