3 # Runs wclient with given parameters on the host (and interface) given
4 # by RUNAT environment variable.
8 my $output = "delay_stats";
18 @run_at = qw!localhost localhost localhost/wlan1!;
19 @run_at = split(/ +/, $ENV{'RUNAT'}) if $ENV{'RUNAT'};
23 foreach $run (@run_at) {
24 ($host, $iface) = split(/\//, $run, 2);
26 push @args, ('ssh', $host) if ($host ne 'localhost');
27 push @args, ('wclient');
28 push @args, ('-I', $iface) if (defined $iface);
30 $output = get_output();
31 $output .= sprintf("-%s%s", $host, defined $iface ? "-$iface":"");
32 if ($outputs{$output}) { $output .= sprintf("-%02d", $i); }
33 $outputs{$output} = 1;
34 push(@args, ('-o', $output));
36 print "running ", join(' ', @args), "\n";
42 foreach $run (@run_at) {