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

20050420: LDM scour issue and computer lock-up


>Date: Wed, 20 Apr 2005 15:58:54 -0400 (EDT)
>From: Gabe Langbauer <address@hidden>
>Organization: Ohio State University
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20050420: LDM scour issue and computer lock-up
>Keywords: 200504191903.j3JJ3u4n010376

The above message contained the following:

> The latest script runs, but still "coudn't discover the meainng of -mtime
> argument"

Try the following script:

    touch /tmp/$dayOffsetName
    sleep 2
    cd /tmp
    if find . \! -name . -prune -mtime 0 -name $dayOffsetName | grep 
$dayOffsetName >/dev/null; then
        echo DAY_OFFSET=1
    elif find . \! -name . -prune -mtime 1 -name $dayOffsetName | grep 
$dayOffsetName >/dev/null; then
        echo DAY_OFFSET=0
        echo "Couldn't discover meaning of '-mtime' argument of find(1)"
        exit 1

I mistakenly omitted the touch(1) and sleep(1) commands in the above.
(this doesn't explain the grep(1) error-message you got, however.)

Steve Emmerson

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.