From fe35508114bb25da256432a4cbf5cf5910f4f8e4 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 27 Jul 2011 08:36:37 +0000 Subject: [PATCH] fix the issue that rsyslogd cannot work with tee command git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10163 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatdsklspost | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index 69df5271f..ecaadeaee 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -312,7 +312,8 @@ run_ps () { if [[ -f \$1 ]]; then echo \"Running postscript: \$@\" | tee -a \$logfile - ./\$@ 2>&1 | tee -a \$logfile + ./\$@ 2>&1 1> /tmp/tmp4xcatlog + cat /tmp/tmp4xcatlog | tee -a \$logfile else echo \"Postscript \$1 does NOT exist.\" | tee -a \$logfile fi