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

eyepopslikeamosquito:

thanks, I had a chance to go through it, and it works fine. I was unfamiliar with fork() and exec() so I had to do a bit of studying first. I think open[_23]() provide a few more options and are more straightforward though, but maybe there is a price for this. Can you tell me any advantages to using fork()/exec() over open()?

All in all, the experience has been very good for me. The whole thing about processes and threads has always been kind of mysterious to me, and I never have had a reason to grind through and get it figured out.

I like your kill_it routine, and will use it.
  • Comment on Re^4: how to kill background process when script exit?

Replies are listed 'Best First'.
Re^5: how to kill background process when script exit?
by Anonymous Monk on Feb 21, 2011 at 14:15 UTC
      thanks, that's a really good explanation and easy to follow. (and entertaining)