Posted by: Anonymous Coward
on March 29, 2005 08:19 PM
updatedb
locate mpg |grep<nobr> <wbr></nobr>/stuff/flix
Actually, because there is no ampersand after the updatedb command in your first example, by definition updatedb will finish before locate has an opportunity to run. There is no need for an artificial "wait" operation in your example. You could have certianly thought up a decent example for use of the wait command, not an artifical contrived one. It's usefulness is when you want to run something in the background, and do something else in the foreground, but then resync with the completion of the background command.
Poorly thought out example
Posted by: Anonymous Coward on March 29, 2005 08:19 PMActually, because there is no ampersand after the updatedb command in your first example, by definition updatedb will finish before locate has an opportunity to run. There is no need for an artificial "wait" operation in your example. You could have certianly thought up a decent example for use of the wait command, not an artifical contrived one. It's usefulness is when you want to run something in the background, and do something else in the foreground, but then resync with the completion of the background command.
#