Member Since: June 3, 2011

Country: United States

  • The problem you’re seeing is that screen consumes the output generated by the usb device, so nothing will be written to your rfid variable. If you simply run the cat command on the usb device file, you’ll also see the RFIDs printed to STDOUT:

    cat  /dev/cu.usbserial-A800f8sK

    To capture the ids in a script, you’d do something like this:

    cat /dev/cu.usbserial-A800f8sK |
    while read rfid 
        echo "found $rfid"
        # do something interesting!

No public wish lists :(