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.

Examples<br />

Security<br />

Localization<br />

Files<br />

For example, the following command will not do what you expect because “hello”<br />

will be treated as a file unless enclosed in parentheses.<br />

uux "Remote!echo hello >test.out"<br />

The correct way to enter that command is:<br />

uux "Remote!echo (hello) >test.out"<br />

1. Suppose that a neighboring site, south, has a program called laser for printing<br />

and formatting documents. You have execute permission for laser. To print the<br />

file inventor.y in south’s public UUCP directory using south’s laser program:<br />

uux south!laser ' ~/inventor.y'<br />

The tilde needs protection from shell expansion.<br />

To print the file report.001 in your public UUCP directory:<br />

uux south!laser ! ~/report.001<br />

2. Suppose you have execute permission for uucp on south. To request that south<br />

use uucp to copy the file index from its public UUCP directory to west, a<br />

neighbor of south:<br />

uux south!uucp \(~/index\) \(west! ~/\)<br />

The arguments ~/index and west! ~/ are not interpreted by uux because of<br />

the parentheses. The backslashes are necessary to escape the parentheses on<br />

the z/<strong>OS</strong> shell.<br />

uux is potentially a security risk to your system. UUCP minimizes the risk by<br />

allowing you to specify the commands that can be run by each remote site. (See<br />

the section on Permissions files in z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> Planning for more<br />

information.)<br />

For electronic mail, each remote site must be able to execute a mail routing agent<br />

on your site. Further permissions can be granted at your discretion.<br />

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

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

See Appendix F for more information.<br />

uux uses the following files:<br />

/usr/lib/uucp/config<br />

UUCP configuration file<br />

/usr/spool/uucp/site<br />

Subdirectory containing queued job requests, work files, data files, and<br />

execution files for the UUCP host site.<br />

/usr/spool/uucp/LOGFILE<br />

Log file for uux and other UUCP utilities.<br />

uux<br />

Chapter 2. Shell command descriptions 755

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

Saved successfully!

Ooh no, something went wrong!