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

Re: image viewer that refreshes?



-- Ron Johnson <ron.l.johnson@cox.net> wrote
(on Tuesday, 11 March 2003, 12:09 PM -0600):
> On Tue, 2003-03-11 at 09:24, Gregory Seidman wrote:
> > 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? 
> > 
> > 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
> 
> What, in this case, is a "remote" operation?

I haven't used this, but I have used a number of other applications that
work like this. Basically, giving 'display' the option '-immutable' and
throwing it into the background makes display sorta kinda act like a
server of sorts -- commands can be given to it. Which is where '-remote'
comes in -- it's saying to 'display' to look for an already running
instance of 'display' and then to change the image being used.

Mozilla has similar operations that can be used to reload/load a new
page in an existing window, or to use an already running process to open
a new window/tab.

(For the OP - had you considered loading the image in
Mozilla/Galeon/Opera/Phoenix... and setting an autoreload on it, either
via the tab/window preferences or using mozilla-remote?)

-- 
Matthew Weier O'Phinney
matthew@weierophinney.net
http://matthew.weierophinney.net



Reply to: