2010/7/24 Noah <noah-l...@enabled.com>:

>
> But what If I just want to send a bunch of lines of text without creating a
> file.   How can I do it?
>
>

Try Net::SSH::Perl.

    my $ssh = Net::SSH::Perl->new("host1");
    $ssh->login("user1", "pass1");

    $ssh->cmd("foo");
    $ssh->cmd("bar");

SSH-2 fully supports running more than one command over the same connection.


-- 
Jeff Pang
http://home.arcor.de/pangj/

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to