From: jitleng@iss.nus.sg (Jit Leng - PSA)
Subject: Cannot write to printer port
Date: 1996/08/07 [thread overview]
Message-ID: <4u9na7$rke@holodeck.iss.nus.sg> (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
reply other threads:[~1996-08-07 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox