熱搜:win11繞過硬件限制安裝 一鍵重裝Win10系統(tǒng) 最干凈的u盤啟動盤 真正純凈版的win7系統(tǒng)
時(shí)間:2014-12-31 14:21:25 作者:qipeng 來源:系統(tǒng)之家 1. 掃描二維碼隨時(shí)看資訊 2. 請使用手機(jī)瀏覽器訪問: https://m.xitongzhijia.net/xtjc/20141231/33812.html 手機(jī)查看 評論 反饋
4.使用實(shí)例:
實(shí)例1:三天后的下午 5 點(diǎn)鍾執(zhí)行 /bin/ls
命令:at 5pm+3 days
輸出:
代碼如下:
。踨oot@localhost ~]# at 5pm+3 days
at》 /bin/ls
at》 《EOT》
job 7 at 2013-01-08 17:00
。踨oot@localhost ~]#
說明:
實(shí)例2:明天17點(diǎn)鐘,輸出時(shí)間到指定文件內(nèi)
命令:at 17:20 tomorrow
輸出:
代碼如下:
[root@localhost ~]# at 17:20 tomorrow
at》 date 》/root/2013.log
at》 《EOT》
job 8 at 2013-01-06 17:20
。踨oot@localhost ~]#
說明:
實(shí)例3:計(jì)劃任務(wù)設(shè)定后,在沒有執(zhí)行之前我們可以用atq命令來查看系統(tǒng)沒有執(zhí)行工作任務(wù)
命令:atq
輸出:
代碼如下:
[root@localhost ~]# atq
8 2013-01-06 17:20 a root
7 2013-01-08 17:00 a root
。踨oot@localhost ~]#
說明:
實(shí)例4:刪除已經(jīng)設(shè)置的任務(wù)
命令:atrm 7
輸出:
代碼如下:
[root@localhost ~]# atq
8 2013-01-06 17:20 a root
7 2013-01-08 17:00 a root
。踨oot@localhost ~]# atrm 7
。踨oot@localhost ~]# atq
8 2013-01-06 17:20 a root
。踨oot@localhost ~]#
說明:
實(shí)例5:顯示已經(jīng)設(shè)置的任務(wù)內(nèi)容
命令:at -c 8
輸出:
代碼如下:
。踨oot@localhost ~]# at -c 8
#!/bin/sh
# atrun uid=0 gid=0
# mail root 0
umask 22此處省略n個(gè)字符
date 》/root/2013.log
。踨oot@localhost ~]#
發(fā)表評論
共0條
評論就這些咯,讓大家也知道你的獨(dú)特見解
立即評論以上留言僅代表用戶個(gè)人觀點(diǎn),不代表系統(tǒng)之家立場