in reply to Parallel SSH
Where did you read that Fork Manager works badly with SSH?
About 18 months ago, I was working on a database backup tool that made heavy use of both Parallel::ForkManager and ssh. I did not see any problems with using the two together.
The basic algorithm was: (pseudo-code)
use Parallel::ForkManager; use Net::SSH::Perl; $pm = new Parallel::ForkManager(10); foreach my $server (@big_list) { my $pid = $pm->start and next; ssh('root@'.$server, '/opt/bin/some_backup_script'); $pm->finish; } print "All backups done";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parallel SSH
by salva (Canon) on Apr 11, 2011 at 12:31 UTC | |
by chrestomanci (Priest) on Apr 11, 2011 at 15:00 UTC | |
by salva (Canon) on Apr 12, 2011 at 08:45 UTC |