#!/bin/bash let x=1 while [ 1 ]; do wget "http:///snapshot.cgi?user=&pwd=" -O $(printf %04d.jpg ${x%.*}) let x++ done