industrial qr code scanner: automatic login and browser new tab for url verifica
-
Sorry for the long (and too wide) title but I have the following problem (hope this is the right place to ask).
I have set up a ticketing system in my WP blog (for a music school): people can freely register for a concert and receive an email with a ticket containing a generated QR code which is simply an URL for an internal page. I can verify the URL just logging in the blog and then visiting the URL. I have an industrial QR code scanner (Datalogic Quickscan QB T2400) which works out of the box: I scan the ticket and it returns the URL.
The problem is that I have to:
- manually open a browser
- manually log in my WP blog
- manually open a new tab for each ticket URL (before scanning)
This is not good, especially because we make concerts in different venues and I need only to have the scanner with me (not necessarily a computer terminal).
Is there a way to make the whole process with a bash script?
I have tried with some textual browser in bg but they are not connecting to my blog…
#! /bin/bash function check_url() { read -p "URL to check: " url if curl --output /dev/null --silent --head --fail "$url"; then xterm -e lynx -accept_all_cookies $url & printf '%s\n' "$url exist" else printf '%s\n' "$url does not exist" fi check_url } lynx -accept_all_cookies -auth=DOMAIN\\ID:PW & check_url
Curl hits the URL correctly but lynx is not logging in (and hence no verification is done).
If you have any tips, thanks in advance.
nicgios
ps. I’m working in a Debian environment.
- The topic ‘industrial qr code scanner: automatic login and browser new tab for url verifica’ is closed to new replies.