From dc820cf31e35c7790d28b28c5047d4780769f1af Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 28 Jul 2011 10:54:39 +0200 Subject: [PATCH] also filter stderr and add hostname as prefix Signed-off-by: Nico Schottelius --- bin/cdist-mass-deploy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cdist-mass-deploy b/bin/cdist-mass-deploy index 5ebfa1c2..c2b6d6a5 100755 --- a/bin/cdist-mass-deploy +++ b/bin/cdist-mass-deploy @@ -42,13 +42,13 @@ fi i=0 while [ $# -gt 0 ]; do if [ "$parallel" ]; then - cdist-deploy-to "$1" | filter "$1" & + cdist-deploy-to "$1" 2>&1 | filter "$1" & # Record pid and host for use later i=$((i+1)) eval pid_$i=$! eval host_$i=\$1 else - cdist-deploy-to "$1" | filter "$1" + cdist-deploy-to "$1" 2>&1 | filter "$1" fi shift done