Webcam.sh
From ST2205u wiki
Script to display images from a webcam.
#!/bin/bash if [ -n "$1" ] then URL=$2 DEV=/dev/sda SETPIC=../setpic/setpic while true; do wget $URL -q -O pict.jpg convert -gravity Center -resize x128 -resize '128x<' -crop 128x128+0+0 -level 0%,100%,0.6 +repage pict.jpg pict.png $SETPIC $DEV pict.png >/dev/null 2>/dev/null sleep $1 done else echo 'Usage: webcam.sh [delay] [URL]' fi