From e4d9ae9955e7e8b542a31a1aec22a0360885aaef Mon Sep 17 00:00:00 2001 From: ligc Date: Sun, 1 Apr 2012 03:57:47 +0000 Subject: [PATCH] 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 --- xCAT/postscripts/xcataixpost | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/xcataixpost b/xCAT/postscripts/xcataixpost index d4bc9dc3f..5e6cfbbf7 100755 --- a/xCAT/postscripts/xcataixpost +++ b/xCAT/postscripts/xcataixpost @@ -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