--- /dev/null
+#!/usr/bin/perl -w
+@run_at = qw|localhost/wlan0 localhost/wlan1 localhost/wlan2 localhost/wlan3|;
+$dest = "192.168.1.2";
+
+sub run {
+ my $at = shift;
+ my ($host, $iface) = split(/\//, $run_at[$at], 2);
+
+ @args = ();
+ push @args, ('ssh', $host) if ($host ne 'localhost');
+ push @args, ('wclient');
+ push @args, ('-I', $iface) if (defined $iface);
+ push @args, split(/ /, shift);
+ print "running ", join(' ', @args), "\n";
+ if (fork() == 0) {
+ exec(@args);
+ exit();
+ }
+}
+
+
+for ($tbw=20; $tbw<=20; $tbw+=10) {
+ foreach $ac(qw/VO/) {# VI BE BK
+ $params="-B $tbw -b $ac -j 50 -s 100 -c 15";
+
+ for ($i=1; $i <= @run_at; $i++) {
+ $at = 0;
+
+ run($at, $params . " -o $tbw-$ac-$i-stas $dest");
+ # Run first tasks at [0] and the remaining in
+ for ($j=1; $j<@run_at; $j++) {
+ if ($j > @run_at - $i) { $at++; }
+ run($at, $params . " -o $tbw-$ac-$i-stas-$j $dest");
+ }
+ print "==================\n";
+
+ for ($j=1; $j <= @run_at; $j++) {
+ wait();
+ }
+ sleep(1);
+ }
+ }
+}
+