in reply to Script hangs when executing command over ssh

Regarding the last comments, I would like to add that I need to distinguish the STDOUT from the STDERR and redirecting STDERR to STDOUT is not an option.
  • Comment on Re: Script hangs when executing command over ssh

Replies are listed 'Best First'.
Re^2: Script hangs when executing command over ssh
by marinersk (Priest) on Jun 18, 2015 at 19:01 UTC

    redirecting STDERR to STDOUT is not an option

    Then it is might be doubly imperative that you stop using 1>&2, because 1>&2causes STDERR STDOUTto be redirected to STDOUT STDERR.