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.

localedef<br />

Related Information<br />

locale<br />

logger — Log messages<br />

Format<br />

Description<br />

Options<br />

logger [–IisTu] [–d dest] [–f filename] [–p priority] [–t tag] [–a tag2] string ...<br />

logger saves a message in the console log; the message consists of the string<br />

operand on the command line. Some options of logger may be in effect by default;<br />

if they are on by default, they cannot be disabled.<br />

The –u and –i options are in effect by default, so all messages from logger are<br />

prefixed by process ID and user login user name.<br />

If there is no message specified on the command line, the standard input is read;<br />

each line of standard input is treated as a log message, and, thus, all terminal input<br />

will be logged as a message. To stop all subsequent input from being processed by<br />

logger, enter the designated escape character, such as ¢, followed by a captial C,<br />

for example: ¢C.<br />

If –f filename is specified, the file is read instead of the standard input.<br />

–f filename<br />

Reads log messages from the file filename rather than from the standard<br />

input.<br />

–I Adds the parent process ID (PPID) of logger to the message.<br />

–i Adds the process ID (PID) of logger to the message. This option is in effect<br />

by default, so all messages from logger are prefixed by the PID.<br />

–s Overrides any destination options and causes logging to the standard error<br />

output.<br />

–T Adds a time stamp (%x %X format, per date) to the message. This time<br />

stamp is always in the P<strong>OS</strong>IX locale, no matter the locale of the message.<br />

–u Adds the login name of the controlling terminal to the message. This option<br />

is in effect by default, so all messages from logger are prefixed by the login<br />

name.<br />

Note: The following options work on z/<strong>OS</strong>. However, because they are<br />

system-specific, they may or may not actually work on another system.<br />

–d destination<br />

Must be a list of numbers, separated by spaces, tabs, or commas, in the<br />

range of 1 to 128, and represents a bit in the routing code number (that is,<br />

ROUTCDE=) in the WTO macro. The default destination value is 0 (no bits<br />

set in the routing code number).<br />

If you use d1, the message goes to the system console.<br />

–p priority<br />

Must be a list of numbers, separated by spaces, tabs, or commas, in the<br />

358 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!