101 lines
3.3 KiB
HTML
101 lines
3.3 KiB
HTML
|
<!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>rexec - Run remote command</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>rexec - Run remote command</h2>
|
||
|
|
||
|
<strong>Synopsis</strong>
|
||
|
|
||
|
|
||
|
<p><img src="delta.gif" alt="Start of change">
|
||
|
<strong>rexec [-C</strong> <em>ccsid</em> <strong>] [-p</strong> <em>password</em><strong>]
|
||
|
[-u</strong> <em>user</em><strong>]</strong> <strong>[-i]</strong> <em>host command</em>
|
||
|
<img src="deltaend.gif" alt="End of change"></p>
|
||
|
|
||
|
<p><strong>Description</strong></p>
|
||
|
|
||
|
<p>The <strong>rexec</strong> utility runs the specified <em>command</em> on the
|
||
|
remote system specified by <em>host</em>. The remote system must be running
|
||
|
a rexec server to process the commands. By default, <strong>rexec</strong> prompts
|
||
|
for a valid user name and password for the remote system. The user name
|
||
|
and password are not encyrpted when they are sent to the remote system.</p>
|
||
|
|
||
|
<p>The standard output and standard error generated by <em>command</em> on the
|
||
|
remote system are written to standard output and standard error on the local
|
||
|
system. Any data read from standard input on the local system is sent to
|
||
|
standard input for the <em>command</em> running on the remote system
|
||
|
<img src="delta.gif" alt="Start of change">if the <strong>-i</strong> option
|
||
|
is not specified.<img src="deltaend.gif" alt="End of change"></p>
|
||
|
|
||
|
<p>By default, the data sent to and from the remote system is encoded in CCSID 819.
|
||
|
The CCSID used to encode the data can be specified with either the <strong>-C</strong>
|
||
|
option or the QIBM_CCSID variable. If the CCSID value is 65535, then no
|
||
|
conversion is done on the data.</p>
|
||
|
|
||
|
<p><strong>Options</strong></p>
|
||
|
|
||
|
<dl>
|
||
|
<dt><strong>-C</strong> <em>ccsid</em></dt>
|
||
|
<dd>Encode the data sent to and from the remote system in the specified <em>ccsid</em>. This option
|
||
|
overrides the value of the QIBM_CCSID environment variable.</dd>
|
||
|
|
||
|
<dt><img src="delta.gif" alt="Start of change"><strong>-i</strong></dt>
|
||
|
<dd>Ignore standard input on the local system.
|
||
|
<img src="deltaend.gif" alt="End of change"></dd>
|
||
|
|
||
|
<dt><strong>-p</strong> <em>password</em></dt>
|
||
|
<dd>The password for the user on <em>host</em>.</dd>
|
||
|
|
||
|
<dt><strong>-u</strong> <em>user</em></dt>
|
||
|
<dd>A valid user name on <em>host</em>.</dd>
|
||
|
|
||
|
</dl>
|
||
|
|
||
|
<p><strong>Operands</strong></p>
|
||
|
|
||
|
<p>The <em>host</em> is the name of the remote system where the command is run. The
|
||
|
<em>command</em> is a command string that is interpreted by the rexec server
|
||
|
running on the remote system.
|
||
|
</p>
|
||
|
|
||
|
<p><strong>Environment Variables</strong></p>
|
||
|
|
||
|
<p><strong>rexec</strong> uses the following environment variables:
|
||
|
<dl>
|
||
|
<dt><strong>QIBM_CCSID</strong></dt>
|
||
|
<dd>The value of the variable is the CCSID to use to encode the data sent to and from
|
||
|
the remote system.</dd>
|
||
|
</dl>
|
||
|
</p>
|
||
|
|
||
|
<p><strong>Exit Status</strong></p>
|
||
|
|
||
|
<ul>
|
||
|
<li>0 when successful</li>
|
||
|
|
||
|
<li>>0 when unsuccessful</li>
|
||
|
</ul>
|
||
|
|
||
|
<p><strong>Related information</strong></p>
|
||
|
|
||
|
<ul>
|
||
|
<li><a href="exec.htm">exec - Run commands and open, close, or copy descriptors </a></li>
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|