on Tue, 02 Jul 2002 10:22:24 GMT, Sebastien Maret wrote:

> Hi there,
> I was wondering how to send  commands on a distant machine via ssh in
> a perl script.
> I tryed this:
> 
> open(REMOTE, " | ssh remote.domain.fr ");
> print REMOTE "firstcommand";
> print REMOTE "secondcommand";

Did you check out Net::SSH::Perl? See

    <http://search.cpan.org/search?dist=Net-SSH-Perl>

-- 
felix

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to