]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - continuous/gw-setup/run.pl
Send target's output to stdout rather than to stderr
[can-benchmark.git] / continuous / gw-setup / run.pl
index befe36e7e63a473e48003592a359eca5a48419a4..068c5dda754346275ed135930142f42023dbcce9 100755 (executable)
@@ -50,8 +50,8 @@ sub run_boot()
        setpgrp(); # Start new process group so that we can kill all
                    # background processes at once
        close($boot);
-       open(STDOUT, ">&", $wh) || die "Can't dup STDOUT: $!";
-       my $cmd = "$bootcmd | tee /dev/stderr";
+       open(STDERR, ">&", $wh) || die "Can't dup STDERR: $!";
+       my $cmd = "$bootcmd 2>&1 | tee /dev/stderr";
        exec($cmd) || die "Can't exec $cmd: $!";
     }
     close($wh);