[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: read-write to stdin-stdout or to a file?



On Mon, Jul 23, 2001 at 01:32:04PM +0100, David Wright wrote:
> Quoting Pedro Zorzenon Neto (pzn@terra.com.br):
> > On Fri, Jul 20, 2001 at 12:42:13PM +0100, David Wright wrote:
> > > Do you mean this package?
> > > 
> > > "Programmer for Atmel AVR microcontrolers that uses PC parallel port
> > 
> > Yes.
> > 
> > > If so, I'm not sure why you think it needs to be setuid. Just
> > > chgrp somegroup /dev/lp0 (or whichever port) and put yourself
> > > (and any others) into somegroup.
> > 
> > I tried /dev/lp* and couldn't make the program work with it.
> 
> I should have looked back at what I had done. I didn't use /dev/lp*
> but a device of my own making /dev/pp125 which is major 125, minor 0
> (i.e. in the range reserved for users). But chgrp it just the same.

 There is now kernel support for generic user-space access to the
parallel port (i.e. do-anything access, not just send/receive bytes
like the lp devices.)  This is in 2.4.x.

-- 
#define X(x,y) x##y
Peter Cordes ;  e-mail: X(peter@llama.nslug. , ns.ca)

"The gods confound the man who first found out how to distinguish the hours!
 Confound him, too, who in this place set up a sundial, to cut and hack
 my day so wretchedly into small pieces!" -- Plautus, 200 BCE



Reply to: