[sf-lug] switching from ssh server to terminal: can it be done and if so, how?
Kristian Erik Hermansen
kristian.hermansen at gmail.com
Fri Feb 15 16:18:32 PST 2008
On Fri, Feb 15, 2008 at 4:06 PM, Asheesh Laroia <asheesh at asheesh.org> wrote:
> Common for me too, I'm afraid!
Yet another reason to always use screen :-)
> I've always thought it should be possible to attach to the program(s) in
> question with a debugger, close stdout and stderr, and re-open them as
> file desecriptors to a new terminal. I've never tried such a trick - has
> anyone on the list?
I bet you could do it using /proc/{PID}/fd/, but I have never tried...
--
Kristian Erik Hermansen
--
"It has been just so in all my inventions. The first step is an
intuition--and comes with a burst, then difficulties arise. This thing
gives out and then that--'Bugs'--as such little faults and
difficulties are called--show themselves and months of anxious
watching, study and labor are requisite before commercial success--or
failure--is certainly reached" -- Thomas Edison in a letter to
Theodore Puskas on November 18, 1878
More information about the sf-lug
mailing list