Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Apr 2009 12:59:54 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Jay Hall <jhall@socket.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: find command question
Message-ID:  <20090409175954.GC90152@dan.emsphone.com>
In-Reply-To: <18E2669B-9EC4-4F63-8B1C-E7D81EBDD607@socket.net>
References:  <18E2669B-9EC4-4F63-8B1C-E7D81EBDD607@socket.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Apr 09), Jay Hall said:
> When using the find command with the -exec option, does the find command
> wait for the command being executed to finish before returning the next
> result?
> 
> For example, if I am using find -exec {} to copy files to tape, will find
> wait for the command to write the file to tape complete before it returns
> the next result?

Since the find manpage says:

     -exec utility [argument ...] ;
             True if the program named utility returns a zero value as its
             exit status. ...

It has to wait for completion to see the exit status.


-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090409175954.GC90152>