Skip to content

Commit

Permalink
Merge pull request #175 from ryran/ps-rhel4
Browse files Browse the repository at this point in the history
fix ps for really old rhel4 #174
  • Loading branch information
ryran committed Jul 17, 2015
2 parents 948e24d + abe06a9 commit 57db7d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xsos
Original file line number Diff line number Diff line change
@@ -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 <http://github.com/ryran/xsos>
# RPM packages available at <http://people.redhat.com/rsawhill/rpms>
# Copyright 2012-2015 Ryan Sawhill Aroha <[email protected]>
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 57db7d1

Please sign in to comment.