Re: [問題] switch to a process by PID

看板Linux作者 (我抓得到什麼呢?)時間11年前 (2013/01/04 00:03), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/2 (看更多)
剛google了一下, attach detached process to terminal gdb 己經寫好的程式: neercs,reptyr,retty(with glitches) http://blog.nelhage.com/2011/02/changing-ctty/ http://caca.zoy.org/wiki/neercs http://blog.habets.pp.se/2009/03/Moving-a-process-to-another-terminal minimun working, without job control: close(), open(), dup2() http://superuser.com/questions/221407/attaching-a-process-to-a-terminal-in-linux ※ 引述《fasthall (Xen)》之銘言: : 標題: [問題] switch to a process by PID : 時間: Thu Jan 3 13:07:01 2013 : : 請問一下今天我用了&讓一個process在背景執行 : : 然後我用ps查到了其PID : : 那我有什麼方法讓shell的焦點回到那個process呢? : : 我有查到jobs和fg可以切回去 : : 但是當我logout後再login回去時 : : jobs就看不到這個process了 : : 但是ps裡面它還是有在跑 : : -- : ※ 發信站: 批踢踢實業坊(ptt.cc) : ◆ From: 140.114.71.40 : → Bencrie:screen 01/03 13:14 : → lantw44:應該是回不去了,或是嘗試 reptyr ? 雖然使用上並不方便 01/03 17:53 : → bitlife:之前有人貼過 gdb 密技,不過我臨時找不到 01/03 23:28 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.245.32

01/05 14:08, , 1F
感謝!
01/05 14:08, 1F
文章代碼(AID): #1GvQlZ5q (Linux)
文章代碼(AID): #1GvQlZ5q (Linux)