find command question

Dan Nelson dnelson at allantgroup.com
Thu Apr 9 17:59:59 UTC 2009


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 at allantgroup.com


More information about the freebsd-questions mailing list