From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,f8a39a98abf86ac3,start X-Google-Attributes: gid1164f8,public From: jitleng@iss.nus.sg (Jit Leng - PSA) Subject: Cannot write to printer port Date: 1996/08/07 Message-ID: <4u9na7$rke@holodeck.iss.nus.sg>#1/1 X-Deja-AN: 172658066 organization: Institute Of Systems Science, NUS. newsgroups: comp.sys.dec 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