#!/bin/sh
folder=$(date "+%Y%m%d") filename=$(date "+%Y%m%d%H%M%S.jpg") #echo $filename $folder
if test -e /mnt/sda1/$folder then echo "folder exits" else mkdir /mnt/sda1/$folder fi
wget --o /mnt/sda1/$folder/$filename http://localhost:8080/?action=snapshot
|