Operating System - HP-UX
1755691 Members
3612 Online
108837 Solutions
New Discussion юеВ

Taking control of an orphaned process

 
Mike Kerner
New Member

Taking control of an orphaned process

I had a recovery shell running when my connection terminated. Upon logging back in I see that the process is still active. Is there some way to take control of this or any other process that has been orphaned?
3 REPLIES 3
Simon Hargrave
Honored Contributor

Re: Taking control of an orphaned process

no you can't, however for future reference you may wish to consider the very useful tool "screen", available from: -

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/screen-4.0.2/

If you are running a long process which you want to be able to return to, you can use screen to create a virtual tty, to which you can connect and disconnect at will. useful in case of PC crashes etc.

Very useful tool.
Steve Steel
Honored Contributor

Re: Taking control of an orphaned process

Hi


No . It is not possible


Your process was connected to a tty and that is gone.

kill them . Only thing to do . Wait and see if process finishes if no io expected


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Nicolas Dumeige
Esteemed Contributor

Re: Taking control of an orphaned process

... a process launched with nohup will be immunised from SIGHUP (or SIGQUIT) signal.

Syntax : nohup executable &
Rem : the output of the command will be redirected to nohup.out.

My 2 cents

Nicolas
All different, all Unix