Re: Automating Telnet or SSH



On 2007-09-12, Samuel <newsgroups@xxxxxxxxxx> wrote:
On Wed, 12 Sep 2007 14:00:20 -0700, Keith Keller wrote:

This isn't a syntax issue, but a way to specify multiple hosts on which
to execute the exscript script would probably be useful.

This is already supported in the following ways:

[snip]

A complete list of command line options is here:
http://code.google.com/p/exscript/wiki/CommandLineSyntax

Great--I did look at the command line syntax, but not very thoroughly.

I'm also a bit puzzled as to what Exscript provides that, say, using the
Perl Net::SSH or Net::SSH::Perl modules do not (or, for simple tasks,
even a hack of copying over a shell script and executing with
ssh/telnet).

I used Perl exclusively before creating Exscript (and long before that,
Expect), so I believe to know it very well. In fact, earlier (unreleased)
versions of Exscript were just wrappers around Perl's Net::Telnet. You
have to admit that it is a *lot* more work to create an equivalent Perl
script, even when ignoring error handling and logging in Perl (both comes
for free in Exscript).
Also, in Exscript, you get parallelization for free (see the -c command
line switch). This is simply a major pita in both, Perl and Expect, and
one of the reasons I wrote Exscript.

Again, great. I'll take a closer look.

--keith

--
kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

.



Relevant Pages

  • Re: Automating Telnet or SSH
    ... to execute the exscript script would probably be useful. ... host3 three ... I used Perl exclusively before creating Exscript (and long before that, ...
    (comp.os.linux.networking)
  • Obtaining complete Unix command line that evoked script as string
    ... If there is a more appropriate list for this, let me know; the other perl lists I've seen seem to specialised for this. ... Note this is not just the arguments of the call to the script, but everything including pipes and redirects, etc., e.g. ... Ideally the perl interpreter would grab the complete command line as its evoked and I'd access this via a variable. ...
    (perl.beginners)
  • Re: [PATCH] Replace scripts/headers_install.pl with a shell script.
    ... Remove perl from make headers_install by replacing a perl script (doing ... Else $i will be evaluated at the time the trap command is used, not at the time we exit, and you need to protect the filenames using "" everywhere. ... "arch is used to force a reinstallation when the arch hanges because kbuild then detect a command line change." ...
    (Linux-Kernel)
  • Re: Displaying a users group memberships
    ... The user's username is passed to the script via the command line and captured with ARGV. ... I want to determine the group memberships (much like executing `groups` from the command line) and run those through a loop for processing. ... I'm very new to Perl so maybe I'm just looking for the wrong terms or something. ... The format of the command is simple: `test.pl username`, where username is a real username on the system in question. ...
    (perl.beginners)
  • Re: "register" (in perl scripts)
    ... scripted gimp. ... This is a Perl problem, not a GIMP problem so you would probably ... it looks to me like you're trying to execute a command ... By the way, your script doesn't appear to use any CGI, etc. - at ...
    (comp.graphics.apps.gimp)