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 that?
Thanks
Sebastien
-- 
Sebastien Maret
Centre d'etude spatial des rayonnements
9 Av. Colonel Roche
BP 4346
31028 Toulouse cedex 04
France
Tel: (33) 5 61 55 81 89
[EMAIL PROTECTED]
http://www.cesr.fr/~maret

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

Reply via email to