I understand your point regarding the output redirection. Removing 1>&2 from the command does get rid of the problem in this specific example.
However the actual program is being run like $ssh->cmd('/bin/a'); and it writes some output to STDERR, and unfortunately I do not have any control over that. Thank you
In reply to Re^4: Script hangs when executing command over ssh
by eg2014
in thread Script hangs when executing command over ssh
by eg2014
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |