Automatically send webcam photo using email server

TringaliLuca Apr 21st, 2017 119 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. streamer -s 1280x720 -f jpeg -o /tmp/tmpfoto.jpeg
  3. echo "Last photo from the webcam is attached" | mail -s "your last photo" -A /tmp/tmpfoto.jpeg
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand