tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY:Regaining control of a background process
@ 1995-05-05 21:47 John Peden
  0 siblings, 0 replies; only message in thread
From: John Peden @ 1995-05-05 21:47 UTC (permalink / raw)
  To: tru64-unix-managers


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-05-05 21:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-05-05 21:47 SUMMARY:Regaining control of a background process John Peden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox