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

Create successful ePaper yourself

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

Portability<br />

Related Information<br />

sleep, tcsh<br />

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

wall — Broadcast a message to logged-in users<br />

Format<br />

Description<br />

Exit Values<br />

wall [message]<br />

wall sends a message to all logged-in users. Type each line, pressing Enter after<br />

each. After you finish typing the message, enter End-of-File or an interrupt (typically,<br />

for End-of-File or for an interrupt, where EscChar is<br />

normally the cent sign; if you use rlogin or telnet to enter the shell, you hold down<br />

the Ctrl key while you press either D or C).<br />

You must be a superuser to ensure permission to write to all the ttys that are<br />

logged in. If you are not a superuser, then writes to all ttys will fail (except your<br />

own) and those users will not receive the message. Superusers can also get<br />

failures if the /etc/utmpx file does not correctly represent the users currently logged<br />

in.<br />

Recipients of the message receive a beep announcing the message. The message<br />

is displayed in this form:<br />

Broadcast Message from SWEHR@AQFT (ttyp0006) at 10:43:54 (EDT5EST)...<br />

This is the text of the message line1.<br />

This is line2.<br />

0 wall successfully sent the message to all users.<br />

1 Failure due to any of the following:<br />

v No message was entered in response to the prompt.<br />

v You do not have permission to write to a user’s terminal.<br />

wc — Count newlines, words, and bytes<br />

Format<br />

Description<br />

Options<br />

wc [–c|–m] [–lw ] [file ...]<br />

wc tells you how big a text document is. It counts the number of s,<br />

words, characters, and bytes in text files. If you specify multiple files, wc produces<br />

counts for each file, plus totals for all files.<br />

–c Prints a byte count. You cannot specify this option with –m.<br />

–l Prints a count<br />

wait<br />

Chapter 2. Shell command descriptions 789

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

Saved successfully!

Ooh no, something went wrong!