From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075319906441.tru64-unix-managers.marc@archive.invalid> From: John Peden Date: Fri, 05 May 1995 21:47:06 +0000 To: tru64-unix-managers Subject: SUMMARY:Regaining control of a background process X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075319906441 I asked: > I have a process that is running in the background, the user > has logged out, and I want to regain control of this process, > to check if it is still running OK. I realise that most flavors > of UNIX to not allow this, does OSF? Answer: Yes it can be done - but you must use DECladebug. Many thanks to Matthias Winkler who sent me the solution to my problem. He suggested using, the DEC Debugger DECladebug, which if you have an object file and a PID, you can attach the debugger to a process that has lost it's control terminal. ( I have apended his reply). ==================================Transcript================================ %decladebug Welcome to the DECladebug Debugger Version 3.0-16 (decladebug) attach 666 clustalw.o ctrl-C . . (decladebug) step . . (decladebug) detach (decladebug) quit ============================================================================== OSF itself doesn't support the ability to reattach a background process to a termimal after a user has logged out. Several people pointed me in the direction of 'screen' ftp://src.doc.ic.ac.uk/gnu/screen-3.6.2.tar.gz which allows a user to create 'virtual sessions' which can be attached/detached at will to/from a trerminal. Though the session must have been started under 'screen' before it can be reattached. many thanks to Ray Bellis Ove Ruben R Olsen Matthias Winkler Kristian Koehntopp Barry Phillips for their very prompt and useful replies ======================================================================== John, I have done this with DECladebug, the Debugger of DEC. It will permit you to "attach" to a running process. You do not need to start the program in question with the debugger. Just use your program as you would normally. Once you feel it is time to check you can kick off the debugger, give it the pid of your process, stop it, set breakpoints, examine variables, step through, continue, detach. I hope this helps. Best regards, Matthias