• 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:

    1. manually open a browser
    2. manually log in my WP blog
    3. 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.

    • This topic was modified 7 years, 4 months ago by James Huff. Reason: moved out of Accessibility forum
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘industrial qr code scanner: automatic login and browser new tab for url verifica’ is closed to new replies.