App-rcmd

 view release on metacpan or  search on metacpan

bin/rcmd  view on Meta::CPAN

54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
            print "$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 )