From: Jamis Buck Date: 2005-10-11T05:00:19+09:00 Subject: Re: documentation & tutorials for net::ssh On Oct 10, 2005, at 1:51 PM, bob wrote: > On Tue, 11 Oct 2005 04:08:35 +0900, Jamis Buck wrote: > >> Can you post an example of one of the scripts where you were doing >> channel.close? Under what conditions do you want the channel to >> close? >> >> - Jamis >> > > None of the scripts I am trying to write are earth shattering. They > (will > eventually) simply consist of running a script or a few commands piped > together on a remote server, grabbing & parsing the output to get some > variables, then building a web page containing those variables. > None of > the scripts I want to get done have gone beyond dumping the output > I want > to the shell at this point in time, because I want to know how to > close > that ssh connection. I think just knowing what I need to do to the > script > already given, to make it end gracefully, would solve my problem. Bob, Let me ask it this way. What shell command are you giving to the remote server? Are the commands self-terminating, or do they remain open waiting for a signal or key-press or whatever? - Jamis