On Fri, 25 Mar 2005, Jeff Wieland wrote:
> I know about Sun Forum. What I need is something very simple, like a
> command line program that wakes up every few seconds and writes a new
> image file.
I just wrote a little script that uses sdtimage to take snapshots.
Here it is (assumes your Sun Forum image is in the top left corner:
-----------------------------------8<---------------------------------
#!/bin/sh
#************************************************* ******************************
#
# Name: %M%
# SCCS Id: %W% %G%
#
# Description: This is a little script to "Drive" a web cam. It assumes
# that the image from SunForum video camera is in the top left
# corner of the screen.
#
#
# Copyright © 2004 by Rich Teer. All rights reserved.
#
#************************************************* ******************************
CAM_IMAGE=/home/rich/images/web_cam.jpeg
TMP_IMAGE=/home/rich/images/web_cam.tmp
while true; do
sdtimage -snapshot -region 354x270+4+64 -f -out JPEG:$TMP_IMAGE
mv $TMP_IMAGE $CAM_IMAGE
done
-----------------------------------8<---------------------------------
Modify to suit.
Enjoy,
--
Rich Teer, SCNA, SCSA
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL:
http://www.rite-group.com/rich