in reply to script hangs after executing program

something waiting for input? even ls can hang if it cannot determine the terminal size (but ls -1 does not), quite a few commands can suffer from this actually (top is another good example)

if you vary $prog what does happen? e.g try '/bin/ksh -c echo aa' with appropriate redirects

hth --stephan
  • Comment on Re: script hangs after executing program