ykphuah,
One of the Expect method overloads accepts Timeout as a parameter.
Did you try to use that?
I think I tried to address there this exact scenario.
hershizer33,
I tried to make tail work in the past but always keep hitting the problem, you can make it work but and constatly read form the stream but the problem is there is no way for me to cancel that shell other then closing the whole client connection.
So because I could not find how to terminate a running shell session, so it could be terminated on the server, I did not implement this feature, at least not for right now :(
Thanks,
Oleg