[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: image viewer that refreshes?



Benjamin Rutt sez:
} I have a .jpg image that keeps changing (from a webcam).  Is there an
} image viewer in debian's packages that will display the image and
} automatically refresh the image when it has changed?  I've already
} tried gqview, xli and display, and qiv.  ('display -update 1' doesn't
} update as advertised).

Let us assume that your image is the free JenniCam, which updates every 20
minutes, and that you have a cron job or some other process doing the
downloading:

#!/bin/sh

WATCHIMG="/tmp/jennicam.jpg"

display -immutable "$WATCHIMG" &
while true
do
	sleep 1200
	display -remote "$WATCHIMG"
done

} Thanks,
} Benjamin
--Greg



Reply to: