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
Received on Fri May 05 1995 - 17:47:45 NZST