Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pconf_detect(6) [debian man page]

libprinterconf(6)						   Games Manual 						 libprinterconf(6)

NAME
pconf_detect - A command-line utility for autodetecting printers in Linux SYNOPSIS
pconf_detect -m [PPORT|NETWORK] -i <info-string> DESCRIPTION
pconf_detect is a command-line utility for autodetecting printers from Linux. It is a simple wrapper around libprinterconf's pconf_detect_printer() function. It currently supports two methods of autodetection: parallel port detection and network detection. The detection type is specified with the -m option, which can be followed by one of two values: PPORT or NETWORK. Detection specific information is passed following the -i option. For parallel port detection, this will be a comma-separated string of parallel port numbers. For network detection, it will be some method of specifying a range of hosts or IP addresses. The most common form is "10.203.1.2/24", indicating the IP/bitmask to scan. Other formats include an IP range ("10.203.1.12-30"), an IP/netmask ("10.203.1.2/255.255.255.0"), a simple IP address ("10.203.1.2"), or a host name ("myprinter.mydomain.com"). [Note: Detection of large network subnets can take a significant amount of time.] pconf_detect will print out a set of formatted text strings, one for each detected printer. The actual format of these strings will depend on the detection method. For parallel port detection, the string will be in the basic form: "port=p;model=m". For a network printer the form is: "printer=hostaddr;vendor=v;model=m". EXAMPLES
PPORT example: pconf_detect -m PPORT -i 0,1 where "0,1" is a comma-separated list of the parallel port to scan. NETWORK example: pconf_detect -m NETWORK -i "10.203.1.2/24" where "10.203.1.2/24" is the IP/bitmask to scan. SEE ALSO
libprinterconf(3) Printerconf Docs 12 April 2000 libprinterconf(6)

Check Out this Related Man Page

LPT(4)							   BSD Kernel Interfaces Manual 						    LPT(4)

NAME
lpt -- generic printer device driver SYNOPSIS
device ppc device ppbus device lpt DESCRIPTION
The current lpt driver is the port of the original lpt driver to the ppbus(4) system. One purpose of this port was to allow parallel port sharing with other parallel devices. Secondly, inb()/outb() calls have been replaced by ppbus function calls. lpt is now arch-independent thanks to the ppbus interface. See ppbus(4) for more info about the ppbus system. The parallel port bus is allocated by lpt when the printer device is opened and released only when the transfer is completed: either when the device is closed or when the entire buffer is sent in interrupt driven mode. The driver can be configured to be either interrupt-driven, or to poll the printer. Ports that are configured to be interrupt-driven can be switched to polled mode by using the lptcontrol(8) command. Depending on your hardware, extended capabilities may be configured with the lptcontrol(8) command. With an ECP/ISA port, you can take advantage of FIFO and DMA. In order to retrieve printer info from /dev/lpt0, just apply the cat command to the device. If the printer supports IEEE1284 nibble mode and has data to send to the host, you will get it. FILES
/dev/lpt0 first parallel port driver SEE ALSO
ppbus(4), ppc(4), lptcontrol(8) HISTORY
This driver replaces the functionality of the lpa driver, which is now defunct. BUGS
There are lots of them, especially in cheap parallel port implementations. It is only possible to open a lpt port when a printer is connected and on-line, making it impossible to run lptcontrol(8) when there is no printer connected. This driver could still stand a rewrite. BSD
February 14, 1999 BSD
Man Page