From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,53ccf29c17275db0 X-Google-Attributes: gidfee84,public From: john@iastate.edu (John Hascall) Subject: Re: Digital Unix /dev/lp0 open for r/w Date: 1997/10/10 Message-ID: <61jvj3$muj$1@news.iastate.edu>#1/1 X-Deja-AN: 279093499 References: <5vu9ff$5f8@redwood.cs.sc.edu> Organization: Iowa State University, Ames, Iowa USA Keywords: LPRng, OSF1 4.0, Digital Unix, lp0 Newsgroups: comp.unix.osf.osf1 Ossama Ahmed Essa wrote: }I am trying to set up quotas on printing. I have a digital DEClaser 3500 }connected to a Dec Alpha running Digital Unix 4.0b running LPRng 2.4.2. }The printer quota program needs to read the page count from the printer. }This is only allowed if the printer is set for read and write. I made }sure that both the printer and the parallel cable are bidirectional. The }problem I am having is that LPRng is returning an error that it can't }find /dev/lp0 (not such device or address) when I set the printer as }read&write in the printcap file. The printing works fine if the printer }is open for write only. I check the permissions on /dev/lp0 and they }were crw-rw-rw-. My guess is that the driver is written for /dev/lp0 }in a way that allows writting only (no input to the parallel port). Your guess is correct -- the driver is dreadfully simple. No read(), no select(), etc. John -- John Hascall, Software Engr. Shut up, be happy. The conveniences you ISU Computation Center demanded are now mandatory. -Jello Biafra mailto:john@iastate.edu http://www.cc.iastate.edu/staff/systems/john/welcome.html <-- the usual crud