I've already tried this, but it does not work.
i do a
session.Run("tail -f textfile")
in a go routine. Then i call session.Close() but the Run does not exit.
The Run does not return until the content of the textfile changes, for example when i do a echo "test">>textfile on another console.Then the Run exits with error
&ssh.ExitError{Waitmsg:ssh.Waitmsg{status:141, signal:"", msg:"", lang:""}}
seems SIGPIPE....
Any further hints ? Seems i am doing something wrong ?!?
Thanks,
Jonas