7 lines
264 B
Bash
Executable file
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
|