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 chec
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";
but the second command does not wait that the first one finishes to stop.
I can I do