Advertisement
lollo78

Script webcam-photo.sh

Jun 11th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. #!/bin/bash
  2. tmpfile='/tmp/'$(date +%d%m%Y%H%M%S)'.jpeg'
  3. streamer -s 1280x720 -f jpeg -o $tmpfile  > /dev/null 2>&1
  4. if [ -f $tmpfile ] ; then
  5. echo "photo://"$tmpfile
  6. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement