I've got a question.
I'm using Solaris 7.
I'm starting a script, which starts another one, which starts the last one. When I kill the first script the both two are still working.
How can I kill them all?
Are these processes related to the first? (look at the output of ps -ef <process>). If they are and they're not being killed when the parent dies, are they being designated <defunct>? Can you post back with the output of your ps. Thanks.
So, the first script is like this (mb_start.sh):
#!/bin/ksh
clear
/usr/storck/mb/bin/mb_bank > /usr/storck/mb/log/mb_bank_output.log &
The second one, mb_bank:
/usr/tibco/mb/bin/mbengine.sh -repourl tibcr://TestBAPI:service=7500:network=IP:daemon=tcp:IP:7500 -transformation TransName -engine TransEngine
And the third (mbengine.sh - already written) is:
... a lot of variables ...
/usr/j2se/bin/java -Xms8mb -Xmx64mb -Dae=TIBMBengine -Dcfg.editors=com.tibco.mb.ui.MessageBrokerEditor -classpath "$LOCAL_MB_CLASSPATH" com.tibco.mb.engine.EngineMode $*
Guess: Could be that because your first script is put in the background with &, it doesn't send a kill to the spawned processes when it is killed. What happens if you don't put it in the background (if it's possible to test it like that)?
Yes, that's right, the first script is in background.
When I start it normally (in foreground I mean), Ctrl+C kills everything.
But the problem is I need them to be run in background, becuse they are java classes, and they "lock" terminal.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.