Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Redirecting error output to a file z/OS UNIX System Services User's Guide SA23-2279-00 |
|
You can redirect error output from the workstation screen to a
file, using 2>. (As you remember, 2 is the file
descriptor for stderr.) For example:
sorts filea, checking
for unique output records. Any messages regarding duplicate records
are redirected to a file named errfile.If you want to append error output to an existing file, use 2>>. If you do not care about seeing the error output, you can redirect
it to /dev/null (also known as the bit bucket).
This is equivalent to discarding the error messages.
|
Copyright IBM Corporation 1990, 2014
|