From: bob Date: 2005-10-11T05:46:53+09:00 Subject: Re: documentation & tutorials for net::ssh On Tue, 11 Oct 2005 05:19:30 +0900, Jamis Buck wrote: > > Actually, the example you gave was "tail -f #{file}", and tail -f is > not self-terminating. It remains open until the command is killed > (TERM signal, for instance), outputting lines from the end of the > file as they appear. > > If you want it to be self-terminating, try removing the -f switch. > Let me know if that helps. > > - Jamis ooops :s I'd started with trying to modify a different example, which I had trouble with due to a lack of understanding of that one along with a feeling that it was perhaps inappropriate, so I moved onto this one as it seemed simpler. I was too busy trying to make the example end gracefully that I was paying too much attention to ruby & not enough to what was being executed on the remote server in the example. Thanks :-)