[Gambas-user] direct printer port access

Charlie Reinl na2492 at ...9...
Sat Apr 8 21:31:22 CEST 2006


>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 *




More information about the User mailing list