請教 Ubuntu 高手

自己用Ubuntu 14.04 弄了服務器跑 HTTP Proxy。 想讓機器四小時或更長時間後自動 suspend. 可是選項最高隻有2小時。請高手給指點一下, 謝了。 

所有跟帖: 

用cronjob stop apache2 service -GuoLuke2- 給 GuoLuke2 發送悄悄話 GuoLuke2 的博客首頁 (0 bytes) () 07/20/2015 postreply 15:30:15

每次開機後都會在4小時後 suspend 嗎? -just4fun2007- 給 just4fun2007 發送悄悄話 (0 bytes) () 07/20/2015 postreply 16:18:03

sleep 4h; sudo service apache2 stop -加州老李- 給 加州老李 發送悄悄話 加州老李 的博客首頁 (0 bytes) () 07/21/2015 postreply 11:19:46

或: sleep 4h; sudo pm-suspend。沒試驗過,估計可以。 -加州老李- 給 加州老李 發送悄悄話 加州老李 的博客首頁 (0 bytes) () 07/21/2015 postreply 11:37:25

謝謝兩位!我會試試 -just4fun2007- 給 just4fun2007 發送悄悄話 (0 bytes) () 07/21/2015 postreply 11:39:35

上麵是直接在SHELL裏輸入命令,不是用“crontab”。 -加州老李- 給 加州老李 發送悄悄話 加州老李 的博客首頁 (0 bytes) () 07/21/2015 postreply 11:45:49

請您先登陸,再發跟帖!