z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Sending a file

z/OS UNIX System Services User's Guide
SA23-2279-00

You can add the output of a command to a message that you are writing. To do this, start a line with an exclamation mark (!) and put a standard shell command on the rest of that line. write calls your shell to execute the command, and sends the standard output (stdout) from the command to the other user. The other user does not see the command itself or any input to the command. For example, you might write:
Here is what my file contains:
!cat file1
The contents of file1 are displayed on the other user's screen.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014