in reply to Script hangs or dies when run in background. Works fine in foreground.

The problem was with stderr not being redirected to a file. I had a grep call that would sometimes write to stdout when a directory was empty. I also set: $SIG{HUP} = 'IGNORE'; Just to be on the safe side. Thanks.
  • Comment on Re: Script hangs or dies when run in background. Works fine in foreground.