old-benchmark-code/loadbot/make_do_all.pl

19 lines
328 B
Perl
Raw Permalink Normal View History

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;
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";