mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
Merge pull request #868 from penguhyang/run_ps_output
run_ps output can't be logged to xcat.log file
This commit is contained in:
commit
15db4f31e0
@ -718,7 +718,7 @@ function msgutil_r {
|
||||
if [ -n "$logserver" ];then
|
||||
logger -n $logserver -t xcat -p local4.$msgtype "$msgstr" >/dev/null 2>&1
|
||||
if [ "$?" != "0" ];then
|
||||
exec 3<>/dev/udp/$logserver/514 >/dev/null 2>&1;logger -s -t xcat -p local4.$msgtype "$msgstr" 1>&3 2>&1
|
||||
exec 3<>/dev/udp/$logserver/514 && logger -s -t xcat -p local4.$msgtype "$msgstr" 1>&3 2>&1 && exec 3>&-
|
||||
if [ "$?" != "0" ];then
|
||||
logger -s -t xcat -p local4.$msgtype "$msgstr" 2>&1|nc $logserver 514 >/dev/null 2>&1
|
||||
if [ "$?" != "0" ];then
|
||||
|
Loading…
x
Reference in New Issue
Block a user