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

102 lines
2.7 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>command - Run a smiple 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>command - Run a simple command</h2>
<strong>Synopsis</strong>
<p><strong>command</strong> [ <strong>-p</strong> ] <em>
command_name</em> [ <em>argument</em> ... ]</p>
<p><strong>command</strong> [ <strong>-vV</strong> ] <em>
command_name</em></p>
<p><strong>Description</strong></p>
<p>You can use <strong>command</strong> to run <em>
command_name</em> with the specified <em>arguments</em> with
functions eliminated from the search order. If <em>
command_name</em> is a special built-in utility, then it is treated
as a regular built-in utility. Otherwise, the effect of <strong>
command</strong> is the same as omitting <strong>
command</strong>.</p>
<p>Note that <strong>command -v</strong> is equivalent to <strong>
whence</strong> and <strong>command -V</strong> is equivalent to
<strong>whence -v</strong>.</p>
<p><strong>Options</strong></p>
<dl>
<dt><strong>-p</strong></dt>
<dd>Perform the command search using a default value for the
<strong>PATH</strong> variable that is guaranteed to find all of
the standard utilities.</dd>
<dt><strong>-v</strong></dt>
<dd>Write a string that shows the path name or command used by
<strong>qsh</strong> to invoke <em>command_name</em> in the current
environment.</dd>
<dt><strong>-V</strong></dt>
<dd>Write a string that shows how <em>command_name</em> is
interpreted by <strong>qsh</strong> in the current
environment.</dd>
</dl>
<p><strong>Operands</strong></p>
<p><em>command_name</em> is a utility in the current
environment.</p>
<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="dot.htm">dot (.) - Run commands in current
environment</a></li>
<li><a href="eval.htm">eval - Construct command by concatenating
arguments</a></li>
<li><a href="whence.htm">whence - Find type of command</a></li>
</ul>
<strong>Examples</strong>
<ol>
<li>Run the export special built-in utility as a regular built-in
utility: <strong>command</strong> export ALPHA</li>
<li>Display the path name used to invoke the ls utility: <strong>
command</strong> -v ls</li>
<li>Display how the reserved word for is interpreted: <strong>
command</strong> -V for</li>
</ol>
</body>
</html>