Your answer still leaves me believing you're not getting my point.
Thus, I'm hoping that removing the 1>&2from your script might prevent the hanging under all cases.
But it might not. Won't know until you try it against all known cases that currently cause it to hang.
In reply to Re^5: Script hangs when executing command over ssh
by marinersk
in thread Script hangs when executing command over ssh
by eg2014
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |