wanahoo 回復于:2003-09-26 18:38:10 |
關機容易,開機用手動吧。 |
gang5415 回復于:2003-09-26 18:45:00 |
開機需要手動檔啊 |
gang5415 回復于:2003-09-26 18:46:36 |
你如果是基于Intel的硬件,而且主板BIOS支持,那么開機還是可以自動化的。 |
whitecat 回復于:2003-09-26 19:08:32 |
crontab -e增加一行
0 22 * * * shutdown 根據情況自已修改關機命令 開機不知道行不行 |
whitecat 回復于:2003-09-26 19:09:26 |
crontab-操作每個用戶的守護程序和該執行的時間表。
部分參數說明 crontab file [-u user]-用指定的文件替代目前的crontab。 crontab-[-u user]-用標準輸入替代目前的crontab. crontab-1[user]-列出用戶目前的crontab. crontab-e[user]-編輯用戶目前的crontab. crontab-d[user]-刪除用戶目前的crontab. crontab-c dir- 指定crontab的目錄。 crontab文件的格式:M H D m d cmd. M: 分鐘(0-59)。 H:小時(0-23)。 D:天(1-31)。 m: 月(1-12)。 d: 一星期內的天(0~6,0為星期天)。 cmd要運行的程序,程序被送入sh執行,這個shell只有USER,HOME,SHELL這三個環境變量。 下面是一個例子文件: #MIN HOUR DAY MONTH DAYOFWEEK COMMAND #每天早上6點 106* * * date #每兩個小時 0*/2* * * date #晚上11點到早上8點之間每兩個小時,早上部點 0 23-7/2,8* * * date #每個月的4號和每個禮拜的禮拜一到禮拜三的早上11點 0 11 4* mon-wed date #1月份日早上4點 0 4 1 jan* date 范例 lark:~>crontab-1 列出用戶目前的crontab. #MIN HOUR DAY MONTH DAYOFWEEK COMMAND 10 6* * * date 0*/2* * * date 0 23-7/2,8 * * * date |
xiongshoufen 回復于:2003-09-26 19:55:23 |
看來還是要問race了,好象我問的問題還沒有回答不出的。 |
lizhiqing 回復于:2003-09-27 10:23:13 |
關機了crontab還怎么運行啊。如果主板支持的話可以考慮網絡喚醒。 |
laoxia 回復于:2003-10-13 09:31:24 |
[b:e514e9279c]System AutoShutdown and AutoWakeup Controls[/b:e514e9279c]
You can use the Dtpower program to specify times for your system to shut down automatically. This feature is called AutoShutdown. If you have a sun4u desktop machine, you can also set your system to power on automatically at a specified time. This feature is called AutoWakeup. -------------------------------------------------------------------------------- Note - Read "Choosing to Use Suspend-Resume" before you change the AutoShutdown settings. -------------------------------------------------------------------------------- AutoShutdown uses the Suspend feature to automatically power off your system. When the system powers up again, the system resumes in the state in which the system was suspended. Through the Dtpower window, you can activate or deactivate the AutoShutdown and AutoWakeup features. You can also specify the following values: The number of minutes of idle time before AutoShutdown attempts to suspend the system The start and finish times when AutoShutdown can oclearcase/" target="_blank" >ccur during each day. If you specify the same time for both start and finish, AutoShutdown can occur at any time of day. See Figure 23-11. The time of day when the system automatically powers on and resumes (AutoWakeup) after being suspended by AutoShutdown. This feature is only available on sun4u desktop systems. Figure 23-11 AutoShutdown Configuration for All Day [img:e514e9279c]http://proxy.unizar.es/sun_docs/C/solaris_9/SUNWabe/CDEUG/figures/autoshutallday.gif[/img:e514e9279c] Note - AutoWakeup does not occur after you suspend a system manually. AutoWakeup can occur only after an AutoShutdown. -------------------------------------------------------------------------------- To Set an Idle Time for AutoShutdown Start Dtpower. -------------------------------------------------------------------------------- Note - Consecutive executions of AutoShutdown do not occur less than five minutes apart, even if the idle time setting is under five minutes. -------------------------------------------------------------------------------- In the Dtpower basic window, click More. The window expands to show the Quick Edit tab. In the Quick Edit tab, check Enable AutoShutdown. Click Edit. The AutoShutdown window is displayed. Figure 23-12 AutoShutdown Window [img:e514e9279c]http://proxy.unizar.es/sun_docs/C/solaris_9/SUNWabe/CDEUG/figures/autoshutdown.gif[/img:e514e9279c] Enter the time you want the AutoShutdown feature to start to be active. Enter the time you want the AutoShutdown feature to cease being active. In the numerical box for Shutdown During This Interval If Idle for, enter the duration for which the computer must be idle before shutting down. In Figure 23-12, the AutoShutdown occurs after 1 hour of idle time between the hours of 6:00 p.m. and 8:00 a.m. Click OK when all the settings you want are displayed. If you want to reject the displayed settings, select Cancel. The currently active settings are displayed in the window. To Disable AutoShutdown Start Dtpower. In the Dtpower basic window, click More. The window expands to show the Quick Edit tab. In the Quick Edit tab, uncheck Enable AutoShutdown. Click OK. |
laoxia 回復于:2003-10-13 09:33:13 |
自動喚醒只有SUN4U才可實現
This is list of sun4u: [url]http://sunsolve.sun.com/handbook_pub/Devices/Boot_PROM/BootPROM_Sun4u.html[/url] |
soway 回復于:2003-10-13 09:52:38 |
哈哈,厲害,不過機器從來都不關的
除非停電,那個時候還要ups哦 |
xiongshoufen 回復于:2003-10-13 10:35:24 |
laoxia:
我是菜鳥??!,你還是寫一個crontab文件給我把,磕頭了??! |
laoxia 回復于:2003-10-13 10:42:00 |
跑dtpower, 進入圖形界面不就完了
要跑CRONJOB,問題是的知道命令,我也不知道命令 告訴你的領導,叫一個服務器就不應當讓它當機,省幾個電錢還不如將來修機器 |
houji 回復于:2003-10-13 11:12:18 |
是呀,服務器經常關機,不是要出問題嗎。折騰幾次壞個設備就知道了。 |