adjust the log code for run_ps

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5747 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wuzhy 2010-04-13 02:57:40 +00:00
parent c0d79d30b2
commit a1dc150258
2 changed files with 2 additions and 8 deletions

View File

@ -265,10 +265,7 @@ run_ps () {
if [[ -f \\\$1 ]]; then
echo \\"Running postscript: \\\$1\\" | tee -a \\\$logfile
OUTPUT=\\\`./\\\$1 2>&1\\\`
if [[ -n \\\$OUTPUT ]]; then
echo \\"\\\$OUTPUT\\" | tee -a \\\$logfile
fi
\\\`./\\\$1 2>&1\\\` | tee -a \\\$logfile
else
echo \\"Postscript \\\$1 does NOT exist.\\" | tee -a \\\$logfile
fi

View File

@ -315,10 +315,7 @@ run_ps () {
if [[ -f \$1 ]]; then
echo \"Running postscript: \$1\" | tee -a \$logfile
OUTPUT=\`./\$1 2>&1\`
if [[ -n \$OUTPUT ]]; then
echo \"\$OUTPUT\" | tee -a \$logfile
fi
\`./\$1 2>&1\` | tee -a \$logfile
else
echo \"Postscript \$1 does NOT exist.\" | tee -a \$logfile
fi