#!/bin/csh # Update the IVM data and HTML documents set MV = '/bin/mv -f' #set Root = '/scra/WWW' set Root = $WEB_ROOT # Make sure that there is only one script running # As a cron job, each script has 3 ps entries: cron command, $0, grep set isrunning = `/bin/ps -ef | /bin/grep $0 | /usr/ucb/wc -l` if ( $isrunning > 3 ) then exit endif # Grab any new gif files on koa $Root/Bin/get_url_data http://koa.ifa.hawaii.edu/IVM/Today/ $Root/IVM/Today $Root/IVM/Yesterday $Root/Bin/get_url_data http://koa.ifa.hawaii.edu/IVM/Yesterday/ $Root/IVM/Yesterday $Root/IVM/Today ## Update the IVM HTML documents $Root/IVM/Bin/ivmhtml Yesterday >! $Root/IVM/yesterday.html $Root/IVM/Bin/ivmhtml Today >! $Root/IVM/today.html