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

88 lines
2.9 KiB
HTML
Raw 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>nohup - Run utility without hangups</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>nohup - Run utility without hangups</h2>
<strong>Synopsis</strong>
<p>
<strong>nohup [ -C</strong> <em>ccsid</em> <strong>]</strong> <em>utility</em> <strong>[</strong> <em>argument</em> ... <strong>]</strong>
</p>
<p><strong>Description</strong></p>
<p>The <strong>nohup</strong> utility runs the specified <em>utility</em> with
the specified <em>arguments</em>. When <em>utility</em> is invoked the SIGHUP signal is set
to be ignored. You can use <strong>nohup</strong> to allow <em>utility</em> to run
even after ending the <a href="commands.htm">Qshell session</a>.</p>
<p>If standard output is a terminal, all output written by <em>utility</em> to its
standard output is appended to the file nohup.out in the current directory. If the file
cannot be created or opened for appending, all output is appended to the file $HOME/nohup.out.
If neither file can be created or opened, <em>utility</em> is not run. The default permission
for the nohup.out file allows only the owner to read and write the file.</p>
<p>If standard error is a terminal, all output written by <em>utility</em> to its
standard error is redirected to the same descriptor as standard output.</p>
<p><strong>Options</strong></p>
<dl>
<dt><strong>-C</strong> <em>ccsid</em></dt>
<dd>The nohup.out file is created with the specified <em>ccsid</em> and all data written to the file
is converted from the CCSID of the job to the specified <em>ccsid</em>. This option
overrides the value of the QIBM_CCSID environment variable.</dd>
</dl>
<p><strong>Operands</strong></p>
<p>The <em>utility</em> is the name of a regular utility in the current environment.</p>
<strong>Environment Variables</strong>
<p><strong>nohup</strong> is affected by the following environment
variables:</p>
<dl>
<dt><strong>QIBM_CCSID</strong></dt>
<dd>The value of the environment variable is the CCSID used to create the nohup.out file.
All data written to the file is converted from the CCSID of the job to the specified CCSID.</dd>
</dl>
<p><strong>Exit Status</strong></p>
<ul>
<li>126 when <em>utility</em> was found but could not be run</li>
<li>127 when <em>utility</em> was not found or there was an error in <strong>nohup</strong></li>
<li>Otherwise, the exit status of <em>utility</em></li>
</ul>
<p><strong>Related information</strong></p>
<ul>
<li><a href="command.htm">command - Run a simple command</a></li>
<li><a href="env.htm">env - Set environment for command invocation</a></li>
</ul>
</body>
</html>