$ssh->system({ stdin_file => 'script1.tcsh' }, 'tcsh') or die "Remote command failed: " . $ssh->error;
Running things in parallel is not so easy. You have the spawn method that returns a PID, then you use perl built-ins as waitpid on the PID to wait for the remote process to finish.
In reply to Re^11: Advice on running perl program over ssh
by salva
in thread Advice on running perl program over ssh
by Amblikai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |