If there's a way to work with the buffer, hopefully a more Unix/Linux-oriented Monk will come along with a suggestion. However, I don't think you understood my point about getting rid of the piping.
Try removing the 1>&2from your command, and see if the problem goes away.
In reply to Re^3: Script hangs when executing command over ssh
by marinersk
in thread Script hangs when executing command over ssh
by eg2014
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |