fix for bug 3487614: add timestamp when running postscripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12079 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
776a6f936d
commit
c3f6fde2fc
@ -83,12 +83,12 @@ 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 1> /tmp/tmp4xcatlog
|
||||
#cat /tmp/tmp4xcatlog | 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
|
||||
|
Loading…
Reference in New Issue
Block a user