Thus said Andrew Hewus Fresh on Sat, 10 Jan 2026 14:36:20 -0800:

> You can  also read from  /dev/uhidN directly  with perl and  not worry
> about the buffering.

Thanks for sharing.  I had to patch it slightly  because apparently more
than one uhidev show up when I insert it:

--- /tmp/read-yubikey.pl.orig   Sat Jan 10 17:13:15 2026
+++ /tmp/read-yubikey.pl        Sat Jan 10 17:14:10 2026
@@ -70,6 +70,7 @@
             }
             elsif ($uhidev && /^(uhid\d+) at \Q$uhidev:/) {
                 $u = $1;
+                last;
             }
         }
         close $fh;

Andy

Reply via email to