首頁 美術繪圖 | 美術設計 | 熱門標籤 | 首選 | 首頁宣傳 | 近期作品 論壇: 發表 | 美術工作 | 美術比賽 | 展覽活動 | 美術相關 | 一般討論 | 美術同好 CG 討論 :: Photoshop | Painter | 3D 行動 | AMP

【 立即註冊 】 : 更改個人資料 : : 登入

會員名稱: 登入密碼: 保持登入

Use "screen" run background task w/o ssh connected

發表新主題 回覆主題 討論區 Windows, Linux, Perl, PHP, C/C++, Driver, Web 理論、應用、硬體、軟體

| 1頁, 共1
人氣點閱:2146 發表人
Use "screen" run background task w/o ssh connected 2013-07-14 10:17
/ / /

Use "screen" run background task w/o ssh connected



You may sometimes want to run an interactive task in background,
e.g. expect scripts, tintin++, iotop batch job, telnet bbs, wget, etc...
yet, without any ssh or win32-putty connected.

#1: Install Screen First on your Linux box


代碼:

$ sudo apt-get install screen
or
$ sudo yum install screen


#2: Run your process in "Screen background task"


代碼:

$ screen

$ run your process task

$ (press ctrl+A, then, press ctrl+D)


[detached from 2703.pts-3.TestLinuxBox]


In which the "2703" is the "screen task id"

#3: Bring the background task to foreground screen


代碼:

$ screen -r
There are several suitable screens on:
        2703.pts-3.TestLinuxBox       (07/14/13 10:07:29)     (Detached)
        2652.pts-2.TestLinuxBox       (07/14/13 10:04:34)     (Detached)
Type "screen [-d] -r [pid.]tty.host" to resume one of them.



$ screen -r 2703.pts-3.TestLinuxBox

________________

美術插畫設計案子報價系統 v0.1 Beta
爪哇禾雀
Type



繪圖畫廊設計藝廊
攝影相簿留言板
最愛收藏分類標籤
暱稱: Type
註冊: 2002-11-30
發表: 11057
來自: vovo2000.com
V幣: 900565





資訊相關理論、技術、管理、應用、產品等
發表新主題 回覆主題