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 --stephanIn reply to Re: script hangs after executing program
by sgt
in thread script hangs after executing program
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |