Operating System - HP-UX
1846956 Members
4504 Online
110257 Solutions
New Discussion

Re: commandeering a terminal session

 
SOLVED
Go to solution
Jordan Bean
Honored Contributor

commandeering a terminal session

We have a oracle dbreorg running in a telnet login from a citrix server. The dba has lost communication with the citrix server which must be rebooted. We're afraid that the dbreorg may terminate with the login shell when the telnet connection is broken. The dba neglected to use nohup. Is it possible to commandeer the session from another terminal? Is it possible to instruct the login shell not to hangup through signals?
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: commandeering a terminal session

Hi Jordan,

Sorry, I think you are stuck. All you can do is hope that the Citrix box keeps the connection to the Unix box. There is no way to insert a new signal handler (which is what a trap statement does) from outside the process.

Clay
If it ain't broke, I can fix that.
Jordan Bean
Honored Contributor

Re: commandeering a terminal session

Unfortunately, the citrix box had to be rebooted since all the users were getting stuck in their sessions. That terminated the telnet connection, which terminated the login shell. We were hoping the dbreorg would orphan, but it terminated as well leaving behind a few zombies. I'm confident that they'll recover just fine. Thanks anyway.
Marty Hoff
Advisor

Re: commandeering a terminal session

In the future to avoid this problem, you could set nohup on your login shell or specifically nohup the dbreorg process when you start it so that if the shell gets killed, the children processes will continue.