From 1e967327a9c288b5fff8e9db78b678d2192c5b0e Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 5 Feb 2014 18:45:13 +0100 Subject: [PATCH] Send target's output to stdout rather than to stderr --- continuous/gw-setup/run.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/continuous/gw-setup/run.pl b/continuous/gw-setup/run.pl index befe36e..068c5dd 100755 --- a/continuous/gw-setup/run.pl +++ b/continuous/gw-setup/run.pl @@ -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); -- 2.39.2