From abe06a9681ee7d9a5afd565cba950b7d4eb41921 Mon Sep 17 00:00:00 2001 From: Ryan Sawhill Aroha Date: Fri, 17 Jul 2015 15:50:32 -0400 Subject: [PATCH] fix ps for really old rhel4 #174 --- xsos | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xsos b/xsos index e4b9ba0..1c2fb50 100755 --- a/xsos +++ b/xsos @@ -1,5 +1,5 @@ #!/bin/bash -# xsos v0.7.1 last mod 2015/07/14 +# xsos v0.7.2 last mod 2015/07/17 # Latest version at # RPM packages available at # Copyright 2012-2015 Ryan Sawhill Aroha @@ -2814,13 +2814,13 @@ PSCHECK() { elif [[ -f $1 ]]; then # If passed a single file if [[ $XSOS_PS_THREADS == y ]]; then - ps_input_thrds_raw=$(<"$1") + ps_input_thrds_raw=$(gawk '$1!="/bin/ps"{print}' <"$1") else - ps_input_procs=$(<"$1") + ps_input_procs=$(gawk '$1!="/bin/ps"{print}' <"$1") fi else - ps_input_thrds_raw=$(<"$1/sos_commands/process/ps_auxwwwm") - ps_input_procs=$(<"$1/ps") + ps_input_thrds_raw=$(gawk '$1!="/bin/ps"{print}' <"$1/sos_commands/process/ps_auxwwwm") + ps_input_procs=$(gawk '$1!="/bin/ps"{print}' <"$1/ps") fi # Need to protect any percent signs by doubling them up if [[ -n $ps_input_procs ]]; then