2011-10-01 13:17:25 -05:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
|
|
|
|
open OUT, ">do_all.sh";
|
2011-10-03 10:50:03 -05:00
|
|
|
open OUT2, ">testservers";
|
2011-10-01 13:17:25 -05:00
|
|
|
|
|
|
|
foreach my $line (split "\n", `cat /tmp/junk`) {
|
|
|
|
my @parts = split " ", $line;
|
2011-10-26 16:56:22 -05:00
|
|
|
print OUT "./ssh.pl $parts[17] root $parts[11] \$1\n";
|
|
|
|
print OUT2 "$parts[17]\n";
|
2011-10-01 13:17:25 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
close OUT;
|
2011-10-03 10:50:03 -05:00
|
|
|
close OUT2;
|
2011-10-01 13:17:25 -05:00
|
|
|
|
|
|
|
# system "chmod +x do_all.sh";
|
|
|
|
system "cat do_all.sh";
|