29.06.2013 Views

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

Qshell Interpreter (qsh) - FTP Directory Listing - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

command - Run a simple command<br />

Synopsis<br />

Description<br />

Options<br />

Operands<br />

Exit status<br />

Related information<br />

Examples<br />

32 <strong>Qshell</strong> <strong>Interpreter</strong> (<strong>qsh</strong>)<br />

command[ -p ] command_name [ argument ... ]<br />

command[ -vV] command_name<br />

You can use commandto run command_name with the specified argument(s) with<br />

functions eliminated from the search order. If command_name is a special built-in<br />

utility, then it is treated as a regular built-in utility. Otherwise, the effect of command<br />

is the same as omitting command.<br />

Note that command -v is equivalent to whence and command -V is equivalent to<br />

whence -v.<br />

v -p Perform the command search using a default value for the PATH variable that<br />

is guaranteed to find all of the standard utilities.<br />

v -v Write a string that shows the path name or command used by <strong>qsh</strong> to invoke<br />

command_name in the current environment.<br />

v -V Write a string that shows how command_name is interpreted by <strong>qsh</strong> in the<br />

current environment.<br />

command_name is a utility in the current environment.<br />

v 0 when successful.<br />

v >0 when unsuccessful.<br />

v “dot (.) - Run commands in current environment”<br />

v “eval - Construct command by concatenating arguments”<br />

v “whence - Find type of command”<br />

1. Run the export special built-in utility as a regular built-in utility: command export<br />

ALPHA<br />

2. Display the path name used to invoke the ls utility: command -v ls<br />

3. Display how the reserved word for is interpreted: command -V for<br />

[ Legal | AS/400 Glossary ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!