in reply to Using Expect.pm and username/password to ssh to a host

I can't run multiple commands on one connect (another requirement)

Then use a single sh to run multiple.

$ssh->cmd(q[sh -c 'first; second;'])

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Replies are listed 'Best First'.
Re: Re: Using Expect.pm and username/password to ssh to a host
by Amsterdamned (Novice) on May 10, 2004 at 14:26 UTC
    Hi Juerd -

    Its not unix at the other end (its Cisco IOS). Also, I have to interact with the commands I'm executing so I really need to be able to pattern match against the individual responses

    Thanks anyway