Sponsored Content
Top Forums Shell Programming and Scripting bash: correct quoting with find and exiv2? Post 302441559 by mcframe on Sunday 1st of August 2010 04:29:13 AM
Old 08-01-2010
Hi,
thx for your answer, I'd hoped to enable the 1-line-solution but it seems like this won't work, so I will try your idea with scripting.

Quote:
Originally Posted by KenJackson
Does zbarimg support qrcode?

The command man zbarimg doesn't mention it, nor does it's site, zbar.sf.net.
Yes, from version 0.10 on, zbarimg detects and parses qrcodes and it works very reliable and fast!

Kind regards
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

BASH quoting behavior

The block below isn't a surprise:$ ls file1 file2 file3 $ x=* $ echo $x file1 file2 file3 $ echo '$x' $x $ echo "$x" * $But I found this block a bit bewildering:$ echo $x' >' * $I'm wondering why substitution wasn't performed on the $x, since it was unquoted (as far as I can tell).... (5 Replies)
Discussion started by: na5m
5 Replies

2. Solaris

correct usage of find's -prune option

I know one of the more seasoned veterans probably opened this thread looking for their chance to refer me to the site's search feature and let me tell you. I'VE LOOKED!!!! And I didn't find anything helpful... So, I've got a windows background and I'm fond of its search feature which comes... (6 Replies)
Discussion started by: ProGrammar
6 Replies

3. Shell Programming and Scripting

Quoting issue: Trouble with bash strings in script

I can do this on the command line: sqsh -S 192.168.x.x -o tmp -U user -P fakepass -D horizon -C "\ select second_id from borrower where btype like '%wsd%' " I can also just leave the SQL at the end intact on one line .... ... However, when I throw this in a script like: $SQSH -o... (4 Replies)
Discussion started by: Bubnoff
4 Replies

4. Shell Programming and Scripting

Correct bash substitution

Hello! I'm writing a shell script using #!/bin/bash instead of #!/bin/sh because of the substitution: ${!variable}, which won't work with sh. My main problem is the following (just a summarized example, the script is much more complex): # sourced from a configuration file, we have a lot of... (6 Replies)
Discussion started by: teresaejunior
6 Replies

5. UNIX for Dummies Questions & Answers

How do I find the correct environment variables for MPI?

Hello all. I've been trying to install NWCHEM in parallel on a new cluster, and have been able to get it to work on single processors by ignoring any MPI environment variables. This is, of course, pretty worthless. So I'm starting over and trying to get thing set up right for the MPI. The key... (6 Replies)
Discussion started by: EinsteinMcfly
6 Replies

6. Shell Programming and Scripting

Check my script and correct the find command if wrong

Hello All, Here I am trying to find all the directories whose name starts with EFS or HOTFIX like in below example and below is my code but I don’t know why this is not working correctly. drwxr-xr-x 3 qabuild denccefs 4096 Sep 23 21:36 EFS110929A_SOURCE/ -rwxrwxr-x 1 qabuild... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies

7. Shell Programming and Scripting

Tricky BASH quoting question

I have some data files that I can identify by a certain pattern in the names using find. Every one of those data files has an XML file associated with it (can be multiple data files per XML file). The XML file is always up one directory from the data file(s) in a folder calledRun##### -... (12 Replies)
Discussion started by: Michael Stora
12 Replies

8. Shell Programming and Scripting

Help with Bash quoting

I am trying to write a BASH script that will prompt a user to enter a number of days, then calculate the date. My problem is the date command uses single or double quotes. For Example.. date -d "7 days" Here is an example of some same code I am trying to work through. echo "when do you... (4 Replies)
Discussion started by: javajockey
4 Replies

9. Shell Programming and Scripting

Cannot find correct syntax to make file name uppercase letters

I have a file name : var=UsrAccChgRpt I want to make them upper case. Tried: $var | tr Error: tr: Invalid combination of options and Strings. Usage: tr | -ds | -s | -ds | -s ] String1 String2 tr { -d | -s | -d | -s } String1 Could you please help. I am using AIX... (2 Replies)
Discussion started by: digioleg54
2 Replies
ZBARCAM(1)							ZBar Barcode Reader							ZBARCAM(1)

NAME
zbarcam - scan and decode bar codes from a video device SYNOPSIS
zbarcam [-qv] [--quiet] [--nodisplay] [--xml] [--verbose[=n]] [--prescale=WxH] [-S[symbology.]config[=value]] [--set [symbology.]config[=value]] [device] zbarcam {-h | --help | --version} DESCRIPTION
zbarcam scans a video4linux video source (eg, a webcam) for bar codes and prints any decoded data to the standard output. The video stream is also displayed to the screen. device is the path to the video4linux (version 1 or 2) character device special file (major number 81 and minor number 0 thru 63). It defaults to /dev/video0 The underlying library currently supports EAN-13 (including UPC and ISBN subsets), EAN-8, Code 128, Code 39, and Interleaved 2 of 5 symbologies. The specific type of each detected symbol is printed with the decoded data. OPTIONS
This program follows the usual GNU command line syntax. Single letter options may be bundled, long options start with two dashes (`-'). -h, --help Print a short help message describing command line options to standard output and exit --version Print program version information to standard output and exit -v, --verbose[=n] Increase debug output level. Multiple -v options create more spew. Alternatively specify n to set the debug level directly -S[symbology.]config[=value], --set [symbology.]config[=value] Set decoder configuration option config for symbology to value. value defaults to 1 if omitted. symbology is one of ean13, ean8, upca, upce, isbn13, isbn10, i25, code39, code128 or the special value *. If symbology is omitted or *, the config will be set for all applicable symbologies. These are the currently recognized configs. Prefix a config with "no-" to negate it. Not all configs are appropriate for every symbology. enable Control decoding/reporting of a symbology. For symbologies which are just subsets of ean13 (upca, upce, isbn13, isbn10), this config controls whether the subsets are detected and reported as such. These special cases are disabled by default, all other symbologies default to enabled disable Antonym for enable emit-check Control whether check digits are included in the decoded output. Enabled by default. This config does not apply for code128, which never returns the check digit. It also not apply for cases where the check digit is disabled (see add-check). Check digits are currently not implemented for i25 or code39 add-check Enable decode and verification of a check digit for symbologies where it is optional: this will include code39 and i25, neither of which implements the check digit yet ascii Enable escape sequences that encode the full ASCII character set. This would apply to code39, except that it's not implemented either... position Enable collection of symbol position information. Enabled by default. Currently, the position information is unusable, so you can save a few cycles by disabling this. min-length=n, max-length=n Bound the number of decoded characters in a valid symbol. If a decode result is outside the configured min/max range (inclusive), it will not be reported. Set to 0 to disable the corresponding check. This setting applies to variable-length symbologies: i25, code39, code128 and pdf417. min-length defaults to 6 for i25 and 1 for code39 (per Code 39 autodiscrimination recommendation); all others default to 0 x-density=n, y-density=n Adjust the density of the scanner passes. Lower values scan more of the image at the cost of decreased performance. Setting to 0 disables scanning along that axis. Defaults are both 1. -q, --quiet Quiet operation; disable the audible beep otherwise emitted when a symbol is decoded --nodisplay Disable output video window. Video input will be scanned until the program is interrupted or otherwise signaled --xml Stream results using an XML output format. This format wraps the raw data from the symbol with information about the scan in an easy to parse format. The latest schema is available from http://zbar.sourceforge.net/2008/barcode.xsd --raw Use raw symbol data output format. This format prints symbol data separated by newlines without the additional symbology type information that is printed by default --prescale=WxH Request video input scaling from the camera driver. Possibly useful for reducing huge frames to achieve a higher frame rate. Note that the driver may adjust or completely ignore the scaling request EXAMPLES
Scan for barcodes using the second video device and pipe the resulting data through a script that searches for each code in a database and does something useful with them: zbarcam /dev/video1 | upcrpc.py The upcrpc.py example script included in the examples/ subdirectory of the distribution will make an XMLRPC call to a popular internet UPC database and print the product description if found. Scan for barcodes using the default video device and stream results to stdout in XML format, also disable recognition of Interleaved 2 of 5 codes to prevent confusion with other symbologies or background noise: zbarcam --xml -Si25.disable Scan only for Code 39, without using the preview window - maybe for a fixed installation. To enable only Code 39, first all symbologies are disabled, then Code 39 is re-enabled: zbarcam --nodisplay -Sdisable -Scode39.enable SEE ALSO
zbarimg(1) http://zbar.sf.net/ BUGS
See http://sf.net/tracker/?group_id=189236&atid=928515 AUTHOR
Jeff Brown <spadix@users.sourceforge.net> Lead developer COPYRIGHT
Copyright (C) 2007-2009 Jeff Brown All Rights Reserved zbar-0.10 2009-10-23 ZBARCAM(1)
All times are GMT -4. The time now is 07:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy