Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi A software named G09 works in parallel using Linda. It spawns its parallel childs on other node as

/usr/bin/ssh -x compute-0-127.local -n /usr/local/g09l/g09/linda-exe/l1002.exel ...other_opts...

However, when the master node kills this process, the corresponding child process on other node, namely compute-0-127 does not die but keeps running in background. Right now, I manually go to each node which has these orphaned Linda processes and kill them with kill. Is there any way to kill such child processes?
Look at pastebin 1 for PSTREE before killing the process and at pastebin 2 for PSTREE after parent is killed
pastebin1 -
pastebin2 - http://
-not enough reputation points for hyperlinking second pastebin, sorry !(

share|improve this question

The best option is to try to solve the problem itself and check why the child procceses are not terminated when their parent die.

You can use this command to execute a command remotely on another machine:

ssh user@remote_machine command

Of course, you need to replace the values: user, remote_machine, and command with the appropriate values.

For example, you can do:

ssh root@remote_machine "killall compute-0-127"
share|improve this answer
Yes, I know the way ssh works, but the processes are started by G09 software, and I can't control that, Can you please look at the pastebin (edited my question) , and suggest ways to get the appropriate values for 'user,remote_machine,command' ? – Prince Oct 30 '10 at 8:06
The user can be root or any user with enough permission. The remote_machine is your machine IP address that you want to kill all these processes on it. The command is shown above "killall". – Khaled Oct 30 '10 at 8:14
Sorry, I don't think "killall compute-0-127" will work. You can look at StackOverflow for more discussion :-… – Prince Oct 30 '10 at 8:18
Have you tried killall? – Peter Stuifzand Oct 30 '10 at 10:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.