[Gambas-user] direct printer port access

Peter Moers peter.moers at ...626...
Sat Apr 8 17:40:46 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,

2006/4/6, nando <nando_f at ...1382...>:
> My error.  I thought you meant Serial Port.
> I have not yet met a CNC machine using Parallel.
>
>
> ---------- Original Message -----------
> From: "nando" <nando_f at ...1382...>
> To: gambas-user at lists.sourceforge.net
> Sent: Thu, 6 Apr 2006 06:09:47 -0400
> Subject: Re: [Gambas-user] direct printer port access
>
> > I used the example for SERIAL PORT works.  Start there.
> > I used it to do pin control and direct access for a unique serial device.
> > Zero problems. Works terrific.
> > -Fernando
> >
> > ---------- Original Message -----------
> > From: "Peter Moers" <peter.moers at ...626...>
> > To: gambas-user at lists.sourceforge.net
> > Sent: Thu, 6 Apr 2006 00:12:02 +0200
> > Subject: [Gambas-user] direct printer port access
> >
> > > hi,
> > > I'm trying to get direct access to the printer port to control a CNC router.
> > > This means I need to be able to set individual pins high and low. I've
> > > found some examples to print text to lp1 etc. but I didn't find a way
> > > to set/read the current state of the pins. Is this possible and if so how?
> > >
> > > Regards,
> > >
> > > --
> > > Peter Moers
> > > peter.moers at ...1417...
> > > Divides Webdesign - http://www.divides.be
> > > Startpagina - http://www.321start.be
> > ------- End of Original Message -------
> >
> > -------------------------------------------------------
> > 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
> ------- End of Original Message -------
>
>
>
> -------------------------------------------------------
> 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