#!/bin/sh
# Test script for creating dated webcam-files.
#
BASEDIR=/usr/people/robin/bin/

#touch $BASEDIR/TEST/`date '+%m%d%H%M'`
day=`/usr/bin/date '+%m%d'`
when=`/usr/bin/date '+%m%d%H%M'`

/usr/bin/mkdir -p $day
echo $BASEDIR/$day

# -v 1 is the O2cam, -v 0 is video-in.
#/usr/sbin/vidtomem -v 1 -f c$when > /dev/null 2>&1
#/usr/sbin/imgcopy c${when}-00000.rgb c${when}.jpg > /dev/null 2>&1

# -n needs to be used on O2 for the other input.
#/usr/sbin/vidtomem -n 0 -f v$when > /dev/null 2>&1
#/usr/sbin/imgcopy v${when}-00000.rgb v${when}.jpg > /dev/null 2>&1

# scp the last shot's to other system....
#/usr/freeware/bin/scp robin@argus:public_html/datecap/

# Cleanup the rgb shot's
#/bin/rm c${when}-00000.rgb
#/bin/rm v${when}-00000.rgb
