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

Re: image viewer that refreshes?



Gregory Seidman <gss+debian@cs.brown.edu> writes:

> 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

FYI, I actually found that I needed to issue the initial display
*without* the -immutable flag (otherwise, the -remote command would
make the original display process terminate).  After that, it worked
great though, thanks for the tip.
-- 
Benjamin



Reply to: