User`s guide

4-56
Guide to Printers and Printing
Prompts
Prompts can be constructed using the V statement plus one or more v statements to
validate the response. After the V statement is executed, the users response is stored in an
environment variable. The v statement can then be used to execute a shell command to
validate the response. A 0 (zero) return code from the shell indicates no errors. A non–zero
return code means an error was found; the specified message is displayed, and the user is
prompted again for the input value.
Example of a Device Configuration File
Refer to the /usr/lib/lpd/pio/etc/xsta.config file as an example of a device configuration
file. This is the file used to support Xstation configuration.