Your zcat command is encased in single-quotes, which means that variable substitution will not occur.
It is not totally clear from the documentation, but I am pretty sure that setting blocking to 0 means non-blocking. Since the ls probably returns right away, this makes no difference in the first case. zcat, however, can take a while on files of non-trivial size. Since you are not checking for EAGAIN, this could give you a problem
Re: NET:SSH2 exec syntax usage
Replies are listed 'Best First'.