16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

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.

ex<br />

Localization<br />

Portability<br />

Related Information<br />

ed, vi<br />

–s Suppresses all interactive feedback (quiet mode). This is for batch mode<br />

operation; ex assumes the terminal cannot display text and ignores the<br />

value of TERM. ex also ignores all startup files and ignores the value of<br />

EXINIT.<br />

–t tag Edits the file containing the specified tag and sets the virtual position in the<br />

edit buffer to point of definition for the tag.<br />

–v Invokes vi.<br />

–w size<br />

Sets the option variable window equal to size.<br />

–x Uses encryption.<br />

ex uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

P<strong>OS</strong>IX.2 User Portability Extension, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

–x is an extension to the P<strong>OS</strong>IX standard.<br />

exec — Run a command and open, close, or copy the file descriptors<br />

Format<br />

Description<br />

exec [–a name] [command_line]<br />

tcsh shell: exec command<br />

The command_line argument for exec specifies a command line for another<br />

command. exec runs this command without creating a new process. Some people<br />

picture this action as overlaying the command on top of the currently running shell.<br />

Thus, when the command exits, control returns to the parent of the shell.<br />

Input and output redirections are valid in command_line. You can change the input<br />

and output descriptors of the shell by giving only input and output redirections in the<br />

command. For example:<br />

exec 2>errors<br />

redirects the standard error stream to errors in all subsequent commands ran by<br />

the shell.<br />

If you do not specify command_line, exec returns a successful exit status.<br />

260 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!