Re: Fork ssh

2010-06-20 Thread C.DeRykus
On Jun 17, 7:51 pm, dery...@gmail.com ("C.DeRykus") wrote: > On Jun 16, 7:34 pm, knowsuperunkn...@gmail.com (Unknown User) wrote: > > > > > Hi > > > I wrote the following script to fork ssh processes with perl and > > Parallel::ForkManager: > > &g

Re: Fork ssh

2010-06-18 Thread Kenneth Wolcott
Hi; I've been using IPC::Run3 from CPAN for about six months and it works great! Ken Wolcott

Re: Fork ssh

2010-06-18 Thread C.DeRykus
On Jun 16, 7:34 pm, knowsuperunkn...@gmail.com (Unknown User) wrote: > Hi > > I wrote the following script to fork ssh processes with perl and > Parallel::ForkManager: > > #!/usr/local/bin/perl -w > use strict; > > my @cmd = "@ARGV"; > use Parallel::ForkM

Re: Fork ssh

2010-06-18 Thread Salvador Fandino
On 06/17/2010 04:34 AM, Unknown User wrote: This works pretty well, but Since There is More than One Way to DO it, i wonder if anyone has another version that does not use fork? There is Net::OpenSSH::Parallel. - Salva -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional

Re: Fork ssh

2010-06-16 Thread John W. Krahn
Unknown User wrote: Hi Hello, I wrote the following script to fork ssh processes with perl and Parallel::ForkManager: #!/usr/local/bin/perl -w use strict; my @cmd = "@ARGV"; Why would you use an array to store a single scalar value? Either: my $cmd = "@ARGV";

Re: Fork ssh

2010-06-16 Thread Jeff Pang
2010/6/17 Unknown User : > > > This works pretty well, but Since There is More than One Way to DO it, > i wonder if anyone has another version that does not use fork? > Just use the right one for you. Instead of processes, the Threads and Coro may also do that well. Regards. -- To unsubscribe,

Fork ssh

2010-06-16 Thread Unknown User
Hi I wrote the following script to fork ssh processes with perl and Parallel::ForkManager: #!/usr/local/bin/perl -w use strict; my @cmd = "@ARGV"; use Parallel::ForkManager; my @nodes; open(NODE,") { chomp; push(@nodes,$_); } my $pm = new Parallel: