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


.



Relevant Pages

  • =?ISO-8859-1?Q?New_System_Command_Script_Facility?=
    ... I'm currently finished writing a new replacement command script processor ... (at least that RACF thinks so, and better support for non-RACF sites). ... The IF-type commands now have ELSE processing ... non-scroll highlighted console message and BEEP until a specific JOB or TASK ...
    (bit.listserv.ibm-main)
  • Re: Command Line Interface
    ... >> should accept system commands only for an administrator. ... >> how should I supress the bash shell and launch my custom CLI ... > The script could run in a restricted shell and offer a menu of ... account, and either 1) change account password, 2) ...
    (comp.os.linux.misc)
  • Net::Telnet and SMTP
    ... I'm trying to send a sequence of commands and then log both the ... I've included the script and a sample text file (that feeds the scripts ... sub processfile { ... #Try a short delay between sending command and reading output ...
    (comp.lang.perl.misc)
  • Re: head, recursively through file tree?
    ... What's the problem with running a shell or perl inline script ... | child-process to execute the user's commands. ... the shell forks a process for every command it runs unless ...
    (comp.unix.shell)
  • Re: Creative ways to time scripts?
    ... commands, but commands that also don't do anything. ... The script could be for either. ... Either in a single program or systemwide (in Windows of ...
    (microsoft.public.scripting.vbscript)