mirror of
https://github.com/samuelncui/yatm.git
synced 2026-01-08 06:15:54 +00:00
feat: job list
This commit is contained in:
7
scripts/readinfo
Executable file
7
scripts/readinfo
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -ex;
|
||||
|
||||
# SG_DEVICE=`sg_map | grep ${DEVICE} | awk '{print $1}'`
|
||||
BARCODE=`./lto-info -f /dev/nst0 | grep 'Barcode' | awk '{print $3}'`
|
||||
echo "{\"barcode\": \"$BARCODE\"}" > $OUT
|
||||
sleep 3
|
||||
Reference in New Issue
Block a user