From: Adrian P. <ad...@ph...> - 2007-05-09 11:43:10
|
>>>>> "Sujai" == sujai <suj...@ta...> writes: Sujai> Hello ken., I want to execute multiple commands on the Sujai> ssh'ed machine.I want to execute iperf server. sujai I have a perl module that I never quite got around to CPANning (wasn't sure how to and never made time to figure it out) eventually named IPC::RemoteSession which allows one to run commands (and eval perl) on a remote connection (assuming ssh keys are setup correctly) :- $conn = IPC::RemoteSession (host => 'ahost'); $output = $conn->cmd ('a shell command'); $output = $conn->cmd ('another shell command'); my $result = $conn->perl ('some perl to eval'); Let me know if you'd like a copy. Sincerely, Adrian Phillips -- Who really wrote the works of William Shakespeare ? http://www.pbs.org/wgbh/pages/frontline/shakespeare/ |