Re: [問題] switch to a process by PID
剛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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):