3040T/M100
2023-02-05 18:45:48 +01:00

7 lines
264 B
Bash
Executable file

#!/bin/bash
cd ~/linuxcnc/scannout/default
LAST=$(find . -maxdepth 1 -name "*.jpg" -type f -printf "%p\n" | sed -e s/.\\/out-//g -e s/.jpg//g | sort -g | tail -1)
cnccapture -D /dev/v4l/by-id/usb-Etron_Technology__Inc._XWJ200-video-index0 out-$(($LAST + 1)).jpg