[SATLUG] find and kill parent process in a script

c P sargonemail at gmail.com
Sun Dec 26 22:55:04 CST 2010

>Don Wright satlug at sbcglobal.net
>But seriously, if you aren't deliberately creating tasks that survive
>the termination of the SSH session, why do you think you have this

Problem is, ssh spawns pseudo-tty's, then exits by default (leaving
pseudo-tty's to their own devices :P )

>>Don Davis wrote:
>>I have a very simple script that connects to another server via ssh -X
>>and executes a program.
>>I would like to insure that all child processes begun by this are killed
>>when the program exits.
use the -n and  -t  options.
Depending on what you're doing -e 'shell_script_command' might make life
simpler too.

More information about the SATLUG mailing list