Re: Send scripts via ssh@cesr.fr

2002-07-02 Thread Felix Geerinckx
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

Send scripts via ssh@cesr.fr

2002-07-02 Thread Sebastien Maret
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