* Cannot write to printer port
@ 1996-08-07 4:00 Jit Leng - PSA
0 siblings, 0 replies; only message in thread
From: Jit Leng - PSA @ 1996-08-07 4:00 UTC (permalink / raw)
I am having a Alpha 200 4/166 machine running Digital Unix v3.2.
I did not connect the port to a printer but to a external device
that does not provide signals, but accepts data from the port.
I coded a program :
port_num = open ("dev/lp0", WRONLY);
write (port_num, "data", 5);
When I run it, I got 'printer offline error'
However, when I run the same program on the PC running SCO Unix, it works
very fine.
Is it because the printer device driver on the Alpha is coded with
intelligence to check for presence of some signals before it opens port.
How do I overcome this problem? Thanks for any help.
d
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-08-07 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-08-07 4:00 Cannot write to printer port Jit Leng - PSA
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox