Managing printers and print jobs

Initializing parallel printers with an init device file

The standard parallel printer devices (/dev/lp, /dev/lp0, /dev/lp1, and /dev/lp2) send a printer initialization string (init) the first time, and only the first time, the device is opened after the system starts up.

Some parallel printers require initialization every time a file is received for printing. Others require an init if the printer is turned off and back on again (for example, after changing paper or ribbon).

If you need to initialize the printer more often than the standard devices provide, you can create an additional device file for the parallel port. Then, use this init device file to initialize the printer when necessary.

  1. Log in as root.

  2. Determine which device is the parallel port you are using. In this example, the device is the main parallel port (/dev/lp0).

  3. Enter:

    /usr/lib/lpadmin -p printer_name -v /dev/lp0i

    This associates the parallel init device, /dev/lp0i, with printer_name.

  4. If your printer requires an init when you turn it off and on after turning on the printer, initialize the printer before the first file is sent to the printer (this example assumes the main parallel port) by entering:

    > /dev/lp0i

    If your printer requires an init every time a file is sent (and it does not have a large internal text buffer), you can use the /dev/lp0i device all the time. The lp(C) command then sends an init every time you send a file to the printer.

See also:

Next topic: Customizing the toolbar
Previous topic: step 7

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003