Hi,

PythonGump's check_pgrep test fails on Solaris when pgrep is present. The problem is that pgrep returns error code 2 on Solaris but code 0 on Linux:

bash$ pgrep -help
pgrep: illegal option -- h
Usage: pgrep [-flnovx] [-d delim] [-P ppidlist] [-g pgrplist] [-s sidlist]
       [-u euidlist] [-U uidlist] [-G gidlist] [-J projidlist]
       [-T taskidlist] [-t termlist] [pattern]
bash$ echo $?
2


Here is the relevent section of the Solaris 9 pgrep/pkill man page:

EXIT STATUS
    The following exit values are returned:

    0     One or more processes were matched.

    1     No processes were matched.

    2     Invalid command line options were specified.

    3     A fatal error occurred.


One possible fix would be to issue "pgrep init" instead of "pgrep -help". I *think* that all *nix has the init process. If agreeable, I'll submit a patch.


--
Michael


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to