get_user_pids(1)
NAME
get_user_pids - Get the process ID(s) of the user, that optionally should
fulfill some constraints
SYNOPSIS
get_user_pids |
[Option [...]] |
DESCRIPTION
The script get_user_pids obtains the process ID(s) of the user.
The process status lines are obtained by means of the
ps(1) command with the appropriate options to get only the user
process status.
However, the process status lines can also be read from file.
The process status lines should match the constraints specified in the options,
if any specified.
OPTIONS
The following options may be specified.
- {-?, -h[elp]}
- Print a usage message and exit.
- -print_ps_com
- Print the process status command and exit with zero exit value.
- -ps_file PSOutputFile
- Read the process status information from file in the place of using the
ps(1) command, which is the default.
- -line PerlExpr
- Specify a perl(1) expression which should match the current
line.
See perlre(1) for more information about
perl(1) expressions.
Multiple specified lines are AND'ed.
- -no_line PerlExpr
- Specify a perl(1) expression which should not
match the current line.
Multiple specified lines are AND'ed.
- -or_line PerlExpr
- Specify a perl(1) expression which should be OR'ed
with the last specified AND'ed matching expression(s).
This option may be multiple specified.
- -or_no_line PerlExpr
- Specify a perl(1) expression which should be OR'ed
with the last specified not matching AND'ed expressions.
This option may be multiple specified.
- -word Index PerlExpr
- Specify a perl(1) expression which should match the word at
position Index.
Indices are starting with 1 or -1.
When above zero, the index is started from the beginning of the command
field.
When below zero, the index is counted from the last word.
Multiple specified words are AND'ed.
- -no_word Index PerlExpr
- Specify a perl(1) expression which should not
match the word at position Index.
Multiple specified words are AND'ed.
- -or_word Index PerlExpr
- Specify a perl(1) expression which should be OR'ed
with the last specified matching AND'ed expressions.
This option may be multiple specified.
- -or_no_word Index PerlExpr
- Specify a perl(1) expression which should be OR'ed
with the last specified not matching AND'ed expressions.
This option may be multiple specified.
- -pids 'PID [...]'
- Specify PID(s) to which the process ID should match.
Multiple PID's are OR'ed.
This option may be multiple specified.
- -no_pids 'PID [...]'
- Specify PID(s) to which the process ID should not match.
Multiple PID's are OR'ed.
This option may be multiple specified.
- -ppids 'PID [...]'
- Specify parent PID(s) to which the process ID should match.
Multiple parent PID's are OR'ed.
This option may be multiple specified.
- -no_ppids 'PID [...]'
- Specify parent PID(s) to which the process ID should not match.
Multiple parent PID's are OR'ed.
This option may be multiple specified.
SEE ALSO
perl(1),
perlre(1),
ps(1)