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
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user