User manual
87
Parameters
-SServer > Specifies the name of the computer or print device running LPD.
-PPrinter > Specifies the name of the printer for the desired queue.
-l (Lowercase L) > Specifies that a detailed status should be given.
Note: specifying the command without the lowercase L returns a generic printer ok status message if the printer
is not busy (see below). However, the printer will not accept the command if it is busy, so nothing is usually
returned until the printer is ready again.
ex. lpq -S10.0.0.192 -Pboca Normally returns a ‘Boca Systems lpd: no jobs queued on this port’
message (printer ok).
ex. lpq -S10.0.0.192 -Pboca -l Returns detailed status for boca queue print job on printer with IP address
10.0.0.192. Note: this will include all of the printer status bytes described in the ‘Printer Status Supplement’ in
the programming guide.
.SHARED DEVICE
The printer may be installed as a shared device on a Network Port using either an LPR port or a Standard
TCP/IP port (See installation instructions at the end of this document). As a shared device, it is possible to
redirect one of the LPT# ports to a network port allowing all of Boca's sample VB, VC, 'C' and GWBasic
programs to work across the network. Redirection is accomplished by using the MS-DOS command Net Use.
Choose a port name on your PC that is not being used (such as LPT2:). The syntax of the command is:
Net Use LPT2: \\networkPCname\printersharename ex. Net Use LPT2:
\\panther\tcpprint
At this point, any copy command issued to LPT2: on your PC will be redirected across your network to the Boca
Systems Inc. printer named tcpprint attached to PC panther. Although the printer can be written to across the
network by this method, the data returned from the printer can't be read back. For further details on Net Use,
refer to your DOS manual or use Windows Help mode.