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, >Date: Thu, 21 Apr 2005 11:40:34 -0400 (EDT) >From: Gabe Langbauer <address@hidden> >Organization: Ohio State University >To: Steve Emmerson <address@hidden> >Subject: Re: 20050421: LDM scour issue and computer lock-up >Keywords: 200504191903.j3JJ3u4n010376 The above message contained the following: > ./script2: line 10: find: command not found > ./script2: line 14: find: command not found > Couldn't discover meaning of '-mtime' argument of find(1) Ah ha! Try this script. Regards, Steve Emmerson
#PATH=/bin:/usr/local/ PATH=/bin:/usr/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 \ | grep /tmp/$dayOffsetName >/dev/null 2>&1; then DAY_OFFSET=1 elif find /tmp \! -name tmp -prune -mtime 1 -name $dayOffsetName \ | 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