-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from ryran/ps-rhel4
fix ps for really old rhel4 #174
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
@@ -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 | ||
|