mirror of https://github.com/CISOfy/lynis.git
Use ps instead of pgrep on AIX
This commit is contained in:
parent
1a1d736fa7
commit
08ecd91180
|
@ -1284,7 +1284,8 @@
|
||||||
|
|
||||||
if [ -z "${search}" ]; then ExitFatal "Missing process to search for when using IsRunning function"; fi
|
if [ -z "${search}" ]; then ExitFatal "Missing process to search for when using IsRunning function"; fi
|
||||||
RUNNING=0
|
RUNNING=0
|
||||||
if [ ! -z "${PGREPBINARY}" ]; then
|
# AIX does not fully support pgrep options, so using ps instead
|
||||||
|
if [ ! -z "${PGREPBINARY}" -a ! "${OS}" = "AIX" ]; then
|
||||||
FIND=$(${PGREPBINARY} ${pgrep_options} "${search}" | ${TRBINARY} '\n' ' ')
|
FIND=$(${PGREPBINARY} ${pgrep_options} "${search}" | ${TRBINARY} '\n' ' ')
|
||||||
else
|
else
|
||||||
if [ -z "${PSOPTIONS}" ]; then
|
if [ -z "${PSOPTIONS}" ]; then
|
||||||
|
|
Loading…
Reference in New Issue