Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: john@iastate.edu (John Hascall)
Subject: Re: Digital Unix /dev/lp0 open for r/w
Date: 1997/10/10	[thread overview]
Message-ID: <61jvj3$muj$1@news.iastate.edu> (raw)
In-Reply-To: 5vu9ff$5f8@redwood.cs.sc.edu


Ossama Ahmed Essa <essa@cs.sc.edu> 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



      reply	other threads:[~1997-10-10  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-19  4:00 Digital Unix /dev/lp0 open for r/w Ossama Ahmed Essa
1997-10-10  4:00 ` John Hascall [this message]
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