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

You may or may not know this, but backgrounding a prog does not totally disconnect it from the terminal session. You need to nohup it to do this, ie
nohup yourprog &
in shell terms.
  • Comment on Re: Script hangs or dies when run in background. Works fine in foreground.