Cannot redirect output to printer
If you redirect output directly to the parallel or serial port
and nothing happens or the system displays the
cannot create
message:
-
Verify that the device file for the port exists in /dev.
Make sure that this file is a device file and not a text file.
For example, use the following command to check lp0:
ls -l /dev/lp0
The output should look similar to this:
crw------- 2 bin bin 6, 0 Jun 13 1993 /dev/lp0
A regular text file does not include the ``c'' character
(for character special file)
at the beginning of the line.
-
Test the cable connection using a cable from a working device with
the same cabling requirements.
-
Print a file while the system is running under DOS.
If you can print a file under DOS but not under the UNIX system:
a.-
Verify that the port is configured correctly. See
``Port does not respond''.
b.-
If the port configuration is correct and you still
cannot redirect output to the port,
try using a different device name.
For example, for a parallel port,
use lp1 instead of lp0.
For a serial port, use tty2a instead of tty1a.
Pay attention to the unit=
message for parallel ports
on the boot screen or use hwconfig
(for example, unit=0
corresponds to lp0).
c.-
If you still cannot print using a different device name,
your printer may be defective; check the printer documentation.
-
If you cannot print from DOS, check the printer hardware configuration.
See the documentation provided with your printer.
If you configured your printer correctly
and you still cannot redirect output to it,
the problem is most likely a hardware malfunction.
Recheck the cables and port configuration and
consult your hardware documentation.
Next topic:
Port does not respond
Previous topic:
Printer does not print
© 2007 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 05 June 2007