I
Indigo5
Is there a way to open several telnet objects simultaneously? I have a
program that takes 10 hours to run and I have to run it for 200 datasets. I
would like to use the Telnet module to do this. However, I can't figure
out how to return back to the main program after I launch the process. In
other words, I want to do some parallel processing with 36 different
machines. Can this be done? In other words something like this currently
only works as serial proceessing:
$matt1 = new Net::Telnet( Timeout => 36000,
Errmode => sub { main::defaultterm()},
Prompt => '/\$$/i'),
$matt2 = new Net::Telnet( Timeout => 36000,
Errmode => sub { main::defaultterm()},
Prompt => '/\$$/i'),
$matt1->open($nodename{1});
$matt2->open($nodename{2});
$matt1->login("$uname\n","$upw\n");
$matt2->login("$uname\n","$upw\n");
$matt1->cmd("cd \/project\//$Runs{1}\/");
$matt1->cmd("../main.pl . $Runs{1} -W");
$matt2->cmd("cd \/project\/cafbeam\/SRM_RUNS\/$Runs{2}\/");
$matt2->cmd("../main.pl . $Runs{2} -W");
program that takes 10 hours to run and I have to run it for 200 datasets. I
would like to use the Telnet module to do this. However, I can't figure
out how to return back to the main program after I launch the process. In
other words, I want to do some parallel processing with 36 different
machines. Can this be done? In other words something like this currently
only works as serial proceessing:
$matt1 = new Net::Telnet( Timeout => 36000,
Errmode => sub { main::defaultterm()},
Prompt => '/\$$/i'),
$matt2 = new Net::Telnet( Timeout => 36000,
Errmode => sub { main::defaultterm()},
Prompt => '/\$$/i'),
$matt1->open($nodename{1});
$matt2->open($nodename{2});
$matt1->login("$uname\n","$upw\n");
$matt2->login("$uname\n","$upw\n");
$matt1->cmd("cd \/project\//$Runs{1}\/");
$matt1->cmd("../main.pl . $Runs{1} -W");
$matt2->cmd("cd \/project\/cafbeam\/SRM_RUNS\/$Runs{2}\/");
$matt2->cmd("../main.pl . $Runs{2} -W");