Hello All,

I have a query about using "ssh" programmatically.
 
I tried using both system and exec, but didn't work. I mean, I wanted some 
processing to happen on the remote machine to which i connect with "ssh", which 
is not happening.

I have copied the code below.
Kindly help or suggest any other options! 


Thanks!
Dhanashri

------------------------------------------------------------------------------------
foreach $machine (@machine_list)
{
      $command = "ssh -l commonuser $machine";
      system($command);

      $flood_dir="/home/commonuser/flood";

        # Run flood
        $command="$flood_dir/flood/flood $flood_dir/round-robin.xml > 
$flood_dir/flood.out";
      system($command);

        # Run analyze_relative script on the flood logs to generate redable 
report
      $command="$flood_dir/flood/examples/analyze-relative $flood_dir/flood.out 
> $flood_dir/flood.report";
      system($command);
    
}
------------------------------------------------------------------------------------

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to