The ERRORS command redirects diagnostic messages to a file that you specify or to the default file, stderr.
- Specifies that Filer is to write diagnostic messages to a new file or to STDERR.
- If the file specified exists, Filer returns an error.
- Specifies that Filer is to append diagnostic messages to a specified file or to STDERR.
- If the file already exists, Filer appends the error messages to the end of the file
- If the file does not exist, Filer creates it automatically.
- Specifies that Filer is to overwrite an existing file or STDERR with current diagnostic messages.
- If the file already exists, Filer writes over the file
- If the file does not exist, Filer creates the file.
- The name of the destination file for diagnostic messages.
- The default file to which Filer writes diagnostic messages.
- A synonym for STDERR.
When you start Filer, it writes diagnostic messages to STDERR by default.
You can use the ERRORS command to redirect the diagnostic messages in the following ways:
- To write to a new file only
- To append an existing file
- To overwrite an existing file
- To display on your console
If you include the file parameter in the ERRORS command, the file you specify becomes the destination for diagnostic messages redirected from STDERR.
If you type the ERRORS command without any options, Filer shows the name of the current diagnostic messages file STDERR on your system console.