Remote Printing
The remote printing facility allows a UNIX user to direct printer output to a Reality formqueue using the lp command.
Using a Remote Printer
The remote printing facility allows you to direct printer output from UNIX to a Reality formqueue, or to a networked printer device.
To do this, you simply execute the standard UNIX lp command, and use the -d option to name a destination printer which has been configured by the System Administrator as a remote printer. For details of how to configure the remote printer, see UNIX-Connect System Administration.
For example:
lp -d REAL newfile
In the above example the file, newfile, is spooled to the Reality formqueue which has been associated with the destination REAL by the UNIX System Administrator.
On UNIX-Connect 1.3G and later, you can also use the -o option to specify a different Reality formqueue. This might be necessary if your System Administrator has configured only one remote printer, but there are a number of different formqueues available.
For example:
lp -d REAL newfile -o FQ=HPLJ2
In the above example the file, newfile, is spooled to the Reality formqueue HPLJ2 using the remote printer destination REAL.
Listing Remote Printers
You can list the available Reality printers with the lpstat command:
-
The -c option simply lists the available printers. Printers which have been configured as remote Reality formqueues belong to the printer class Reality, while other remote printers belong to the printer class NETWORK.
-
The -t option displays all status information, including: the status of the LP scheduler, the system default destination, a list of class names and their members, a list of printers and their associated devices, and the acceptance and idle/busy status of all printers.
Note
The lpstat command shows jobs that have been queued on the UNIX system. When a job disappears from this queue, it has been successfully transmitted to the remote printer, but not necessarily printed.