fix for bug 3487614: xcataixpost: add timestamp when running postscripts

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12084 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2012-04-01 03:57:47 +00:00
parent f0951d09f0
commit e4d9ae9955

View File

@ -302,10 +302,10 @@ run_ps () {
logfile=\\"/var/log/xcat/xcat.log\\"
if [[ -f \\\$1 ]]; then
echo \\"Running postscript: \\\$@\\" | tee -a \\\$logfile
echo \\"\\\`date\\\` Running postscript: \\\$@\\" | tee -a \\\$logfile
./\\\$@ 2>&1 | tee -a \\\$logfile
else
echo \\"Postscript \\\$1 does NOT exist.\\" | tee -a \\\$logfile
echo \\"\\\`date\\\` Postscript \\\$1 does NOT exist.\\" | tee -a \\\$logfile
fi
}
# subroutine end