#!/bin/sh # # setrootwx.sh - Kevin P. Inscoe (kevin@inscoe.org) # # You must first set the control panel in CDE to "no background" # if using this script in Solaris. Takes various radar screens for # Central Florida and updates the background. I run this as cron # every 5 minutes during daytime hours. # # Requires Lynx, XV and the Netpbm tools installed if using Solaris. # Look at Sunfreeware.com # # Otherwise under Linux use xloadimage # # For a complete listing of radar sites consult http://inscoe.org/wx # # Updates: # # April 2, 2003 # # Recently this script has been moved to my Redhat 8 desktop but should still # work on a Solaris desktop. It previously worked under Solaris 8 # DISPLAY=localhost:0; export DISPLAY # # Now durng Hurricane Season switch off between local radar and storm track # min=`date "+%M"` if [ $(($min%2)) -eq 0 ]; then GFX="http://radar.wunderground.com/data/nids/MLB19_0.gif" else # GFX="http://wells.harcourtbrace.com/~kinscoe/nhc_tpcda.cgi" GFX="http://radar.wunderground.com/data/nids/MLB19_0.gif" fi /bin/date /usr/local/bin/lynx -source $GFX > /tmp/mydesktop.fil /usr/X11R6/bin/xv -quit -root -rmode 5 -maxpect -max +viewonly /tmp/mydesktop.fil