WorldOfBitcoin (OP)
Member
Offline
Activity: 102
Merit: 10
|
|
December 18, 2012, 10:13:04 AM |
|
I've used the Google QR code generator before.
But I want to run a script that takes a list of address's (excel or csv) and turns them into hundreds of individual .jpg files.
ware do I start?
|
|
|
|
Aldur1
Member
Offline
Activity: 73
Merit: 10
www.bitex.co.uk - A new begining in cryptotech
|
|
December 18, 2012, 10:17:12 AM |
|
|
|
|
|
WorldOfBitcoin (OP)
Member
Offline
Activity: 102
Merit: 10
|
|
December 18, 2012, 10:20:09 AM |
|
"The QR4 Desktop QR Code Software package for office use costs 1489 €"
really? some one actually paid them that?
|
|
|
|
|
tbcoin
Legendary
Offline
Activity: 1022
Merit: 1000
|
|
December 18, 2012, 10:26:27 AM |
|
On linux you can use qrencode in a script to do this
|
|
|
|
WorldOfBitcoin (OP)
Member
Offline
Activity: 102
Merit: 10
|
|
December 18, 2012, 10:31:41 AM |
|
|
|
|
|
WorldOfBitcoin (OP)
Member
Offline
Activity: 102
Merit: 10
|
|
December 18, 2012, 10:33:04 AM |
|
On linux you can use qrencode in a script to do this
I have Ubuntu running on VMware. can you show an example?
|
|
|
|
tbcoin
Legendary
Offline
Activity: 1022
Merit: 1000
|
|
December 18, 2012, 10:41:59 AM Last edit: December 18, 2012, 11:16:02 AM by tbcoin |
|
On linux you can use qrencode in a script to do this
I have Ubuntu running on VMware. can you show an example? for a simple addr list do not even need a script for x in `cat addrlist.txt`; do qrencode -o $x.png $x; done EDIT: you need install qrencode first ( apt-get install qrencode ) You can use -s to specify the size of dot
|
|
|
|
WorldOfBitcoin (OP)
Member
Offline
Activity: 102
Merit: 10
|
|
December 18, 2012, 10:56:19 AM |
|
qrencode -o test.png add2.txt returns a singular file png of "add2.txt" qrencode -o test.png $add2.txt returns a singular file png of "add2" qrencode -o $test.png $add2.txt does nothing What am I missing? my txt file looks like this https://dl-web.dropbox.com/get/add2.txt?w=79ca2f0cOn linux you can use qrencode in a script to do this
I have Ubuntu running on VMware. can you show an example? for a simple addr list do not even need a script for x in `cat addrlist.txt`; do qrencode -o $x.png $x; done EDIT: you need install qrencode first ( apt-get install qrencode )
|
|
|
|
tbcoin
Legendary
Offline
Activity: 1022
Merit: 1000
|
|
December 18, 2012, 11:08:35 AM |
|
you're not doing what I said. copy and paste: for x in `cat add2.txt`; do qrencode -o $x.png $x; done EDIT: I can't see your dropbox file
|
|
|
|
WorldOfBitcoin (OP)
Member
Offline
Activity: 102
Merit: 10
|
|
December 18, 2012, 12:19:28 PM |
|
so, ran into a bit of a snag
I need to number the files in the order they are processed.
-o FILENAME write PNG image to FILENAME. If '-' is specified, the result will be output to standard output. If -S is given, structured symbols are written to FILENAME-01.png, FILENAME-02.png, ...; if specified, remove a trailing '.png' from FILENAME.
if I try
for x in `cat add2.txt`; do qrencode -o -S $x.png $x; done
it does a single file named -S
ive tried
$-.png
$'-'.png
for x in `cat add2.txt`; do qrencode -o -S $x.png $x; done
for x in `cat add2.txt`; do qrencode -S $x; done <this outputs a single file named himbhs>
I dont understand "If -S is given" trying to get the -01 -02 -03 ext
|
|
|
|
tbcoin
Legendary
Offline
Activity: 1022
Merit: 1000
|
|
December 18, 2012, 12:55:10 PM |
|
i=1;for x in `cat add2.txt`; do qrencode -o $i.png $x; ((i++); done
|
|
|
|
Raoul Duke
aka psy
Legendary
Offline
Activity: 1358
Merit: 1002
|
|
December 18, 2012, 01:17:26 PM |
|
so, ran into a bit of a snag
I need to number the files in the order they are processed.
-o FILENAME write PNG image to FILENAME. If '-' is specified, the result will be output to standard output. If -S is given, structured symbols are written to FILENAME-01.png, FILENAME-02.png, ...; if specified, remove a trailing '.png' from FILENAME.
if I try
for x in `cat add2.txt`; do qrencode -o -S $x.png $x; done
it does a single file named -S
ive tried
$-.png
$'-'.png
for x in `cat add2.txt`; do qrencode -o -S $x.png $x; done
for x in `cat add2.txt`; do qrencode -S $x; done <this outputs a single file named himbhs>
I dont understand "If -S is given" trying to get the -01 -02 -03 ext
the -S needs to come before the -o and you need to remove the .png from the filename. altho I don't understand why do you want that option, given that the files will already be numbered.
|
|
|
|
WorldOfBitcoin (OP)
Member
Offline
Activity: 102
Merit: 10
|
|
December 18, 2012, 01:30:43 PM |
|
the -S needs to come before the -o and you need to remove the .png from the filename. altho I don't understand why do you want that option, given that the files will already be numbered.
trying i=1;for x in `cat add2.txt`; do qrencode -S -o $i $x; ((i++); done is returning bash: syntax error near unexpected token `done' I need the files in order, because the order they are in the txt file is very different then "alphabetical" how it dumps out on my desktop I tried moving my excel around and it counts differently. the files are saving as the bitcoin address, and it acting weird with the order 1A... 1Z 11 vr 11 12.. 1A I tried sorting by "time" but that didnt work
|
|
|
|
Raoul Duke
aka psy
Legendary
Offline
Activity: 1358
Merit: 1002
|
|
December 18, 2012, 01:54:53 PM |
|
Try this one i=1;for x in `cat add2.txt`; do qrencode -S -o $i $x; ((i++)); done
|
|
|
|
tbcoin
Legendary
Offline
Activity: 1022
Merit: 1000
|
|
December 18, 2012, 01:58:07 PM |
|
i=1;for x in `cat add2.txt`; do qrencode -o $i.png $x; ((i++); done
this works, why you change it?
|
|
|
|
Raoul Duke
aka psy
Legendary
Offline
Activity: 1358
Merit: 1002
|
|
December 18, 2012, 02:00:18 PM |
|
i=1;for x in `cat add2.txt`; do qrencode -o $i.png $x; ((i++); done
this works, why you change it? It will work when you fix the error you have. It's missing the last closing parenthesis. And yes, the -S is not needed, also, so the correct one i=1;for x in `cat add2.txt`; do qrencode -o $i.png $x; ((i++)); done
|
|
|
|
tbcoin
Legendary
Offline
Activity: 1022
Merit: 1000
|
|
December 18, 2012, 02:02:17 PM |
|
i=1;for x in `cat add2.txt`; do qrencode -o $i.png $x; ((i++); done
this works, why you change it? It will work when you fix the error you have. It's missing the last closing parenthesis. And yes, the -S is not needed, also, so the correct one i=1;for x in `cat add2.txt`; do qrencode -o $i.png $x; ((i++)); done ohh men, true
|
|
|
|
|
|