Top Forums UNIX for Advanced & Expert Users read from a USB Barcode-Reader Post 55825 by Perderabo on Monday 20th of September 2004 02:40:30 PM
It would help if you would tell us which unix you are using. The only usbkvm manpage I find is here, and when I read the man page, I see:

open("/dev/kbd", O_RDWR)

and I would expect this module to be autopushed anyway. Be sure that you're open the right device. And run autopush on that device to be sure that the module really needs an explicit push.

I sorta doubt that a keyboard module will handle a bar code reader anyway. But I've never worked with this stuff, so who knows...
Test Your Knowledge in Computers #619
Difficulty: Medium
In Python, variables may not be used by just assigning them a value. Declaration and data type definition is required in Python.
True or False?

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Barcode Printing

How can you pull up a list of print drivers loaded at the Unix level? I am trying to get an HP LaserJet 2300 using the PCL5e driver to print barcode labels. I believe the PCL5e driver needs to be loaded somewhere at the Unix level but am at a loss as to where. Thanks (2 Replies)
Discussion started by: llepley
2 Replies

2. Linux

How to read keys from USB keyboard on AT91SAM9260

Hi Everyone, I am using kernel(Embedded system) running on AT91SAM9260. I am using a Logitech USB keyboard. It is detected as "/dev/input/event0". I don't know how to detect key press events and read the keys? Why can't I read the keys using scanf() like funtions? ... (7 Replies)
Discussion started by: siva4ever
7 Replies

3. Solaris

Serial Barcode Reader

I have a serial barcode reader which I attached to my Solaris 10 workstation. I can see the barcode scanned data appearing when I do a tip hardwire. Question is how can I enable the data to appear in command prompt or any text editor programs? Thanks for the help (3 Replies)
Discussion started by: timtan169
3 Replies

4. UNIX for Dummies Questions & Answers

USB-USB cable between linux and windows computers

Is there an easy way to setup a cross-over cable (USB-USB) between a linux box and a windows PC? My 2 machines are next to each other but I really do not want to keep transfering my files using my USB drive. Thanks! (4 Replies)
Discussion started by: Xterra
4 Replies

5. What is on Your Mind?

Barcode Generator

QR Code Generator (0 Replies)
Discussion started by: Neo
0 Replies

6. What is on Your Mind?

Do you read books with an ebook reader?

I bought a Sony PRS-650 Reader to read books and I'm loving it. For one thing, there are zillions of free books in epub format available for download for free. Many of them are out of print, so you would have to pay a high price to get a printed copy. Most current releases have to be paid for,... (15 Replies)
Discussion started by: KenJackson
15 Replies

7. Ubuntu

how to make others have read/write permission when the aotu mounted usb flash disk pluge in ?

hi all: as we know , when usb flash disk plug in and aotu mounted , the default permission of the usb flash disk is 700. that means others have no permission . the question: how to make others have read/write permission when the aotu mounted usb flash disk pluge in ? thanks !! (0 Replies)
Discussion started by: arnold.king
0 Replies

8. Ubuntu

Barcode scanner buffer read manipulation

Hello, I'm facing some problems with a barcode scanner from Cygnal Inc, model Sweda SL-20. Info from lsusb -v: Bus 003 Device 003: ID 10c4:ff11 Cygnal Integrated Products, Inc. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 ... (4 Replies)
Discussion started by: minharojr
4 Replies

9. HP-UX

Configure X windows with both keyboard and USB barcode reader

Greetings. Seeking guidance on adding a USB barcode reader (BCR) to an HP c3750 workstation with HP-UX 11.11 which is essentially configuring X windows to accept input from both a primary keyboard and a secondary keyboard that happens to be the BCR. Historically, I have successfully added a BCR... (2 Replies)
Discussion started by: mnkaltenbach
2 Replies
Template::Plugin::URL(3)				User Contributed Perl Documentation				  Template::Plugin::URL(3)

Template::Plugin::URL - Plugin to construct complex URLs SYNOPSIS
[% USE url('/cgi-bin/') %] [% url(debug = 1, id = 123) %] # ==> /cgi/bin/ [% USE mycgi = url('/cgi-bin/', mode='browse', debug=1) %] [% mycgi %] # ==> /cgi/bin/ [% mycgi(mode='submit') %] # ==> /cgi/bin/ [% mycgi(debug='d2 p0', id='D4-2k[4]') %] # ==> /cgi-bin/ DESCRIPTION
The "URL" plugin can be used to construct complex URLs from a base stem and a hash array of additional query parameters. The constructor should be passed a base URL and optionally, a hash array reference of default parameters and values. Used from with a template, it would look something like the following: [% USE url('') %] [% USE url('/cgi-bin/', mode='browse') %] [% USE url('/cgi-bin/', mode='browse', debug=1) %] When the plugin is then called without any arguments, the default base and parameters are returned as a formatted query string. [% url %] For the above three examples, these will produce the following outputs: /cgi-bin/ /cgi-bin/ Note that additional parameters are separated by '"&"' rather than simply '"&"'. This is the correct behaviour for HTML pages but is, unfortunately, incorrect when creating URLs that do not need to be encoded safely for HTML. This is likely to be corrected in a future version of the plugin (most probably with TT3). In the mean time, you can set $Template::Plugin::URL::JOINT to "&" to get the correct behaviour. Additional parameters may be also be specified to the URL: [% url(mode='submit', id='wiz') %] Which, for the same three examples, produces: /cgi-bin/ /cgi-bin/ A new base URL may also be specified as the first option: [% url('/cgi-bin/', test=1) %] producing /cgi-bin/ /cgi-bin/ /cgi-bin/ The ordering of the parameters is non-deterministic due to fact that Perl's hashes themselves are unordered. This isn't a problem as the ordering of CGI parameters is insignificant (to the best of my knowledge). All values will be properly escaped thanks to some code borrowed from Lincoln Stein's "CGI" module. e.g. [% USE url('/cgi-bin/') %] [% url(name="Elrich von Benjy d'Weiro") %] Here the spaces and ""'"" character are escaped in the output: /cgi-bin/ An alternate name may be provided for the plugin at construction time as per regular Template Toolkit syntax. [% USE mycgi = url('cgi-bin/') %] [% mycgi(debug=1) %] AUTHOR
Andy Wardley <> <> COPYRIGHT
Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
Template::Plugin perl v5.16.3 2011-12-20 Template::Plugin::URL(3)

Featured Tech Videos

All times are GMT -4. The time now is 08:42 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy