This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Gabe, OK. I've created a script (attached) that's almost identical to your scour(1) script. Execute it and let me know. Regards, Steve Emmerson ------- Original Message Date: Wed, 20 Apr 2005 21:44:25 -0400 From: Gabe Langbauer <address@hidden>To: Steve Emmerson <address@hidden> Subject: Re: 20050420: LDM scour issue and computer lock-up This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-851401618-1114047865=:1971 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Attached [snip] ------- End of Original Message
#PATH=/bin:/usr/local/ PATH=/bin:/home/ldm/bin LOGGER=echo TZ=UTC0 export TZ dayOffsetName=scour_$$ trap 'rm -f /tmp/$dayOffsetName' EXIT if touch /tmp/$dayOffsetName; then sleep 2 if find /tmp \! -name tmp -prune -mtime 0 -name $dayOffsetName \ 2>/dev/null | grep /tmp/$dayOffsetName >/dev/null 2>&1; then DAY_OFFSET=1 elif find /tmp \! -name tmp -prune -mtime 1 -name $dayOffsetName \ 2>/dev/null | grep /tmp/$dayOffsetName >/dev/null 2>&1; then DAY_OFFSET=0 else $LOGGER "Couldn't discover meaning of '-mtime' argument of find(1)" exit 1 fi rm /tmp/$dayOffsetName else $LOGGER "Couldn't create '-mtime' discovery-file /tmp/$dayOffsetName" exit 1 fi