in reply to Re^3: how to kill background process when script exit?
in thread how to kill background process when script exit?

Corion:

"Do all the redirection in the shell script and do not launch it in the background. The open(my $fh, "... |") will launch the script and also make it available for reading."

when I do this, I get basically the same results as opening the java app directly - my script continues, but I can't exit the script until I close the java app.

also tried using the ampersand in the shell script, but then it doesn't kill the java app when I exit.

I'm really trying, guys, maybe I'm missing something stupid.

  • Comment on Re^4: how to kill background process when script exit?