On Wednesday 25 September 2002 10:46 am, fliptop wrote:
> On Wed, 25 Sep 2002 at 10:00, Geraint Jones opined:
>
> GJ:On Tuesday 24 September 2002 3:41 pm, fliptop wrote:
> GJ:> On Tue, 24 Sep 2002 at 13:24, Geraint Jones opined:
> GJ:>
> GJ:> GJ:I'm trying to get the output from a barcode scanner into my CGI
> script. GJ:> What I GJ:would like to see is the barcode going straight into
> a text box GJ:> in my GJ:browser. I am using Device::SerialPort to read the
> output which GJ:> works fine as GJ:a normal Perl script, but I don't know
> how to allow Perl GJ:> CGI scripts to GJ:access my /dev/ttyS1 port. Any
> help on this matter would GJ:> be greatly GJ:appreciated.
> GJ:>
> GJ:> you may have a permission problem.  does the user your webserver runs
> as GJ:> have permission to read from /dev/ttyS1?
> GJ:
> GJ:Probably not. How do I go about permitting Apache to see ttyS1?
>
> you just use chown like any regular file or directory.  if your webserver
> runs as nobody, for example, you'd type (as root):
>
> chown nobody:uucp /dev/ttyS1
>
> and that will give nobody access to read from the ttyS1 port.  of course,
> i'm assuming your ports are owned by uucp.

Thanks, that got it.
-- 
Geraint Jones

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to