App-rcmd
view release on metacpan or search on metacpan
5455565758596061626364656667686970717273
"$name\n"
;
}
}
exit
;
}
# check and get command line arguments
@ARGV
== 2 or
die
$usage
;
my
(
$hosts
,
$cmd
) =
@ARGV
;
my
$contents
=
do
{
local
(
@ARGV
, $/ ) =
$hosts
; <> };
my
@hosts
=
split
' '
,
$contents
;
# username to use for ssh connections
my
$user
;
if
(
$u
) {
$user
=
$u
;
}
else
{
$user
=
getlogin
||
getpwuid
($<) ||
die
"Can't get current username"
;
}
( run in 0.561 second using v1.01-cache-2.11-cpan-49f99fa48dc )