jobs(1) MPE/iX Shell and Utilities jobs(1)
______________________________________________________________________
NAME
jobs -- display status of jobs in current session
SYNOPSIS
jobs [-l|-p] [job-identifier...]
DESCRIPTION
Note: The MPE/iX implementation of this utility does not function
exactly as this man page describes. For details, see the MPE/iX
NOTES section at the end of this man page.
jobs produces a list of the processes in the current session.
Each such process is numbered for easy identification by fg(1)
and kill(1), and is described by a line of information:
[job-identifier] default state shell_command
job-identifier
is a decimal number which identifies the process for such
commands as fg(1) and kill(1) (preface the job-identifier
with % when used with these commands).
default
identifies the process that is default for the fg(1) and
bg(1) commands (that is, the most recently suspended pro-
cess). If default is a +, this process is the default job.
If default is a -, this job becomes the default when the
current default job exits. There is at most one + job and
one - job.
state
shows a job as:
Running if it is not suspended and has not exited
Done if it exited successfully
Done(exit status)if it exited with a non-zero exit status
Stopped (signal) if it is suspended; signal is the signal
that suspended the job
shell_command
is the associated shell command which created the process.
Options
jobs accepts the following options:
-l also displays the process group ID of a job (before state).
1
jobs(1) MPE/iX Shell and Utilities jobs(1)
______________________________________________________________________
-p displays only the process IDs of all processes.
The -l and -p options are mutually exclusive.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
2 Failure due to an invalid command line argument.
Message
Message: Unknown option "-option"
Cause: You specified an option that is not valid for jobs.
Action: Check the DESCRIPTION section of this man page for a
list of valid jobs options.
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0.
MPE/iX NOTES
The current release of MPE/iX does not support job control. As a
result, there will never be any jobs in the stopped state. Also,
the fg and bg commands (described in the POSIX.2a standard) are
not currently implemented. You can use job IDs with the kill
command to specify processes.
For more information on how the current MPE/iX implementation may
affect the operation of this utility, see Appendix A, MPE/iX
Implementation Considerations.
SEE ALSO
kill(1), wait(1)
2