透過 crontab 執行 screen - Linux
By Oliver
at 2015-04-01T18:38
at 2015-04-01T18:38
Table of Contents
推 filiaslayers: 單獨執行這個script有問題嗎?還是用cron就不行了?04/01 17:23
直接執行 script 沒問題,但透過 crontab 就無法啟動
推 aeolus0829: 停止/啟動 server 也要用到 screen 指令?有必要嗎?04/01 17:36
→ carylorrk: 把訊息 redirect 到 log 檔啊...04/01 18:03
主要是之前用 nohup 並帶到背景,下次 SSH 登入後我找不到方法再把他叫回來前景
所以後來才選擇用 screen。
而且除了看 server log 以外,還有些動作必須要在遊戲 server 的 console 去執行
所以啟動後必須要能讓我登入 ssh 並讓我可以對遊戲 server console 操作
因此,如果有辦法不用 screen 但能做到一樣的事情,也是 OK
→ carylorrk: 話說我覺得 tmux 比較適合當指令來用04/01 18:04
會研究看看 tmux , 感謝~ 不過目前還是想先找看看有沒有 screen 的解法~
--
Tags:
Linux
All Comments
By Susan
at 2015-04-04T07:42
at 2015-04-04T07:42
By Steve
at 2015-04-06T00:09
at 2015-04-06T00:09
By Oscar
at 2015-04-10T00:59
at 2015-04-10T00:59
By Steve
at 2015-04-12T17:22
at 2015-04-12T17:22
By Candice
at 2015-04-14T04:14
at 2015-04-14T04:14
By Charlie
at 2015-04-14T21:37
at 2015-04-14T21:37
By Frederica
at 2015-04-18T07:48
at 2015-04-18T07:48
By Hedwig
at 2015-04-19T08:14
at 2015-04-19T08:14
By Megan
at 2015-04-22T23:11
at 2015-04-22T23:11
By Caitlin
at 2015-04-25T06:31
at 2015-04-25T06:31
By Oliver
at 2015-04-26T10:03
at 2015-04-26T10:03
By Emma
at 2015-04-27T09:23
at 2015-04-27T09:23
By James
at 2015-04-28T20:47
at 2015-04-28T20:47
By Edwina
at 2015-05-02T14:10
at 2015-05-02T14:10
By Anonymous
at 2015-05-05T13:11
at 2015-05-05T13:11
Related Posts
請問ubuntu gnome如何不顯示瀏覽記錄
By Sierra Rose
at 2015-04-01T02:31
at 2015-04-01T02:31
help desk/support tick system ?
By Aaliyah
at 2015-03-31T15:28
at 2015-03-31T15:28
無法中斷腳本
By Jessica
at 2015-03-31T12:29
at 2015-03-31T12:29
如何將Com Port資料存到資料庫?
By Lucy
at 2015-03-31T10:23
at 2015-03-31T10:23
IP address 16(hex) ?
By Ophelia
at 2015-03-31T09:47
at 2015-03-31T09:47