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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

exec - Run commands and open, close, or copy descriptors<br />

Synopsis<br />

Description<br />

Options<br />

Operands<br />

Exit status<br />

exec[ command [ argument ... ]]<br />

You can use execto replace <strong>qsh</strong> with command without creating a new process.<br />

The specified argument(s) are arguments to command. Any redirections affect the<br />

current environment.<br />

When you do not specify command, any redirections are processed in the current<br />

environment. Any file descriptors greater than 2 that are opened by a redirection are<br />

not inherited when <strong>qsh</strong> invokes another program.<br />

None.<br />

Related information<br />

Examples<br />

exit - Exit from the shell<br />

Synopsis<br />

Description<br />

Each argument is assigned in order to the positional parameters of command.<br />

Zero if no command is specified. Otherwise it does not return to <strong>qsh</strong>.<br />

v “command - Run a simple command”<br />

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

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

1. Open a file for reading on descriptor 5: exec 5

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

Saved successfully!

Ooh no, something went wrong!