Skip to content

Instantly share code, notes, and snippets.

@shibby
Created September 20, 2016 17:52
Show Gist options
  • Save shibby/93f13b8984819c9b082a94be37b4e762 to your computer and use it in GitHub Desktop.
Save shibby/93f13b8984819c9b082a94be37b4e762 to your computer and use it in GitHub Desktop.
take picture using webcam
#!/bin/bash
datetime=`date +"%y-%m-%d-%T"`;
filename="/home/guven/webcam/cam-$datetime";
filename+=".jpeg";
echo "streamer -f jpeg -s 1280x720 -o $filename";
status=`streamer -f jpeg -s 1280x720 -o $filename`;
echo $datetime;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment