ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahz_5.4.0.1/jobs.htm

102 lines
2.3 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<meta http-equiv="Content-Type" content=
"text/html; charset=utf-8">
<title>jobs - Display status of jobs in current session</title>
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</HEAD>
<body bgcolor="#FFFFFF">
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h2>jobs - Display status of jobs in current session</h2>
<strong>Synopsis</strong>
<p><strong>jobs [ -ln ]</strong> [ <em>job</em> ... ]</p>
<p><strong>Description</strong></p>
<p>You can use <strong>jobs</strong> to display information about
active jobs started by <strong>qsh</strong>. For each job, <strong>
qsh</strong> displays:</p>
<ul>
<li>Job number in brackets ([ ]).</li>
<li>Status (Running, Done, Terminated, and so on).</li>
<li>Return value of the job in parenthesis () when the return value
is greater than zero and the job status is Done.</li>
<li>Command line for the job.</li>
</ul>
<p><strong>Options</strong></p>
<dl>
<dt><strong>-l</strong></dt>
<dd>Display status for each process in the specified job.</dd>
<dt><strong>-n</strong></dt>
<dd>Display status only for those jobs whose status has changed but
has not been reported yet.</dd>
</dl>
<p><strong>Operands</strong></p>
<p>Each <em>job</em> specifies an active job. The job can be
specified as a:</p>
<ul>
<li>Number to refer to a process id.</li>
<li>%number to refer to a job number.</li>
<li>%string to refer to a job whose name begins with string.
<p>If <em>job</em> is not specified, <strong>qsh</strong> displays
status for all active jobs.</p>
</li>
</ul>
<p><strong>Exit Status</strong></p>
<ul>
<li>0 when successful.</li>
<li>&gt;0 when unsuccessful.</li>
</ul>
<p><strong>Related information</strong></p>
<ul>
<li><a href="kill.htm">kill - Terminate or signal
processes</a></li>
<li><a href="wait.htm">wait - Wait for process completion</a></li>
</ul>
<strong>Examples</strong>
<ol>
<li>Display status for job number 1: <strong>jobs</strong> %1</li>
<li>Display status for process id 16107: <strong>jobs</strong>
16107</li>
<li>Display status for a job running the ls utility: <strong>
jobs</strong> %ls</li>
<li>Display status for all active jobs: <strong>jobs</strong></li>
</ol>
</body>
</html>