[Gambas-user] direct printer port access
Peter Moers
peter.moers at ...626...
Sat Apr 8 21:51:56 CEST 2006
I did it this way:
SHELL "echo " & txtPass.Text & "|sudo -S lptio write " & value
This works but is to slow so right now I'm trying to make a component
to control te parallel port. My knowlege of C is getting larger... :)
Sat, 8 Apr 2006 21:31:22 00200, Charlie Reinl <na2492 at ...9...>:
> >To get around my parallel port problem I learned a bit of C and made a
> >program that runs from command line and sets the pins like I want
> >them. Now I want to do:
> >SHELL "lptio 'write " & value & '""
> >But that doesn't work since I have to be root to access te port. So
> >the next thing I tried was:
> >SHELL "sudo lptio 'write " & value & '""
> >but ofcourse I can't give the password :) or can I?
> >
> >Regards,
> >
> Salut,
>
> in sudoers you can declare users or a group like the followed :
>
> # Uncomment to allow people in group wheel to run all commands
> # %wheel ALL=(ALL) ALL
>
> # Same thing without a password
> # %wheel ALL=(ALL) NOPASSWD: ALL
>
> have a look in man sudoers
>
> Amicalment
> Charlie
> * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de *
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Peter Moers
peter.moers at ...1417...
Divides Webdesign - http://www.divides.be
Startpagina - http://www.321start.be
More information about the User
mailing list