vgrabbj
public text v1 · immutable$ cat check/vgrabbj.feh
#!/bin/bash
let "NUMB=$(ls -l /home/user/pix/webcam/|wc -l)+1"
NUMB="/home/user/pix/webcam/webcam-$NUMB.jpg"
vgrabbj -c /etc/vgrabbj.conf.lenovo -f $NUMB
sleep 3
feh $NUMB
echo "delete $NUMB? [y/n]"
read rmpix
if [ "$rmpix" == "y" ]; then
rm $NUMB
echo "$NUMB removed."
exit 1
elif [ "$rmpix" == "n" ]; then
echo "$NUMB saved."
echo "ok!"
exit 1
else echo "arrrrgh!"
exit 1
fi