精品成人一区二区三区-国产精品黄色-婷婷色婷婷-av日韩-欧美在线综合-黄色影视在线观看

使用Linux at命令讓W(xué)in2000定時(shí)執(zhí)行操作

在Win2000中,讓系統(tǒng)定時(shí)操作比較常用的辦法就是啟動(dòng)調(diào)度服務(wù)后使用Linux at命令,調(diào)度服務(wù)的啟動(dòng)方法可以從服務(wù),MMC中也可以使用命令行的方式"NET START SCHEDULE".

Linux at命令的用法如下:

Linux at命令安排在特定日期和時(shí)間運(yùn)行命令和程序。

要使用Linux at命令,計(jì)劃服務(wù)必須已在運(yùn)行中。

AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]]

AT [\\computername] time [/INTERACTIVE]

[ /EVERY:date[,...] | /NEXT:date[,...]] "command"

\\computername 指定遠(yuǎn)程計(jì)算機(jī)。 如果省略這個(gè)參數(shù),會(huì)計(jì)劃在本地計(jì)算機(jī)上運(yùn)行Linux at命令。

id 指定給已計(jì)劃命令的識(shí)別號(hào)。

/delete 刪除某個(gè)已計(jì)劃的Linux at命令。如果省略 id,計(jì)算機(jī)上所有已計(jì)劃的Linux at命令都會(huì)被刪除。

/yes 不需要進(jìn)一步確認(rèn)時(shí),跟刪除所有作業(yè)的Linux at命令一起使用。

time 指定運(yùn)行Linux at命令的時(shí)間。

/interactive 允許作業(yè)在運(yùn)行時(shí),與當(dāng)時(shí)登錄的用戶桌面進(jìn)行交互。

/every:date[,...] 每個(gè)月或每個(gè)星期在指定的日期運(yùn)行Linux at命令。

如果省略日期,則默認(rèn)為在每月的本日運(yùn)行。

/next:date[,...] 指定在下一個(gè)指定日期(如,下周四)運(yùn)行Linux at命令。

如果省略日期,則默認(rèn)為在每月的本日運(yùn)行。

"command" 準(zhǔn)備運(yùn)行的 Windows NT 命令或批處理程序。

用法一,定時(shí)啟動(dòng)關(guān)閉某個(gè)服務(wù)以RAS服務(wù)方例,讓該服務(wù)在每日19:00啟動(dòng),次日7:30關(guān)閉,Linux at命令如下:

AT 19:00 /every:M,T,W,Th,F,S,Su net start ″remote access server″

AT 7:30 /every:M,T,W,Th,F,S,Su net stop ″remote access server″

用法二,Linux at命令定時(shí)關(guān)機(jī)

1.編寫(xiě)一個(gè)批處理文件(使用批處理文件的原因是為了以后更靈活的控制而不需要重新建立調(diào)度),內(nèi)容如下:

shutdown /l

如果是讓機(jī)器重新啟動(dòng)則使用

shutdown /r

文件存為c:\autoshut.bat

2.建立自動(dòng)執(zhí)行條目:

at 22:00 c:\autoshut.bat

這樣Linux at命令每天晚上22:00機(jī)器都會(huì)自動(dòng)關(guān)機(jī),在關(guān)機(jī)前會(huì)進(jìn)行30秒鐘的提示,倒計(jì)時(shí)的.

文中用的shutdown程序是win2k的Rkit中自帶的,chinaasp網(wǎng)站上好象也有下載,非常好用的.

這是這個(gè)程序的其它用法:

shutdown [\\computername] [/l] [/a] [/r] [/t:xx] ["msg"] [/y] [/c] [/?]

Where:

\\computername

Remote computer to shut down. If no name is given but the tool is started with any of the other

options, the local computer name will be used.

/L

Specifies a local shutdown.

/A

Quits a system shutdown. This can only be done during the timeout period. If this switch is used,

all others are ignored.

/R

Restart the computer specifed after shutdown.

/T:xx

Sets the timer for system shutdown in xx seconds. The default is 20 seconds.

"msg"

Specifies an additional message with a maximum of 127 characters, surrounded by quotation marks.

/y

Answers questions with "yes".

/C

Forces running applications to close.

Caution

If you use the /c parameter, Windows 2000 ignores the application’s option to save data that

might have changed. You will see no File Save dia

log box, because Windows 2000 will force the

application to close. This will result in a loss of all data not previously saved.

/? (or shutdown without parameters)

Display help.

Examples

Shutdown and reboot a remote computer.

shutdown \\IMAREMOTECOMPUTER /R

Shutdown a local computer, closing all applications in 5 seconds.

shutdown /L /C /T:5

PS:shutdown程序下載地址為:http://www.pkufo.com/computer/openfile.asp?id=65

以上是使用Linux at命令讓W(xué)in2000定時(shí)執(zhí)行操作。

北大青鳥(niǎo)網(wǎng)上報(bào)名
北大青鳥(niǎo)招生簡(jiǎn)章
主站蜘蛛池模板: 中文国产成人精品久久久 | 最新版天堂资源中文官网 | 男人女人做性全程视视频 | 美女做爰视频在线观看免费 | 国产欧美日韩在线观看精品 | 免费看特黄特黄欧美大片 | 香蕉伊人网 | 一区二区三区中文 | 亚洲精品一区二区三区四 | 99久热在线精品视频播 | 97精品国产高清在线看入口 | 亚洲精品国产福利一区二区三区 | 在线99| 日本一级毛片高清免费观看视频 | 贵州美女一级纯黄大片 | 成人a在线 | 亚洲综合精品一区二区三区中文 | 日韩中文字幕视频在线 | 真人毛片视频 | 亚洲经典在线中文字幕 | 久草新在线观看 | 欧美在线观看免费一区视频 | 高清国产在线 | 欧美性猛交xxx免费看人妖 | 亚洲欧洲日产国码一级毛片 | 天堂中文资源在线8 | 18岁禁黄色| 日韩欧美中文字幕在线播放 | 大伊香蕉精品视频在线 | 日本欧美中文 | 日日摸日日碰夜夜97 | 欧美在线一区二区三区 | 日本黄色大片在线播放视频免费观看 | 亚洲美女一级片 | 奇米888四色在线精品 | 国产一成人精品福利网站 | 国产福利最新手机在线观看 | 三级黄色毛片网站 | 中文一级国产特级毛片视频 | 在线观看免费为成年视频 | 日韩欧美亚洲中字幕在线播放 |