>for i in file
>do
>  md5sum $i &
>done

But "md5sum -c" processes its own file list, and returns a
status comprising all elements.  Yes, it could be done in a
complicated shell script, but I figured it would be easier
and more generally usable if in C.

>But then you have those same problems with an 
>internally forking version.

Writes no problem, the parent would be doing all user I/O.  The
order of checking could be a little different than a single-threaded
version, but that should surprise no one.

>On a semi-related note, it would be really nice if shells had some kind
of 
>"jobs -w 0" option to wait until there are 0 background jobs running.

They do:  "wait"

-- Jim




_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to