#!/bin/ksh LD_LIBRARYN32_PATH=/usr/local/lib32 export LD_LIBRARYN32_PATH PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc/:/etc:/usr/bsd:/usr/bin/X11 PATH=$PATH:/usr/local/bin:/usr/local/bin/X11 export PATH on_exit() { rm -f /var/run/photo.pid } if [ -f /var/run/photo.pid ] then exit 1 else touch /var/run/photo.pid trap "on_exit" INT 0 1 2 3 13 15 fi cd /var/www/pub/audio/ rm -f out-00000.rgb vidtomem -c 1 >/dev/null 2>&1 #vidtomem -c 1 if ls *jpg > /dev/null 2>&1 then first=`basename \`ls *[0-9].jpg | head -1\` .jpg` last=`basename \`ls *[0-9].jpg | tail -1\` .jpg` files=`expr $last - $first` if [ $files -gt 100 ] then rm $first.jpg fi else last=0 fi JPG=`echo $last | awk '{printf("%04d",1+$1)}'` convert out-00000.rgb ${JPG}.jpg convert -geom 128 out-00000.rgb ${JPG}_s.jpg rm out-00000.rgb NCOL=5 let IR=0 ( head -20 index.html echo "
"
echo ""
echo " $m $d $h | "
let IR=$IR+1
if [ $IR -eq $NCOL ]
then
echo "