in reply to Re^2: avoiding shell escapes with exec()
in thread avoiding shell escapes with exec()

I was under the impression that the only reason you were using the fork was to help deal with the hanging issue. I take it you need to do some batch processing instead?
  • Comment on Re^3: avoiding shell escapes with exec()