Linux.com

Re:Poorly thought out example

Posted by: Anonymous Coward on May 11, 2005 03:43 AM
Well, the original AC was not proclaiming himself an expert, like the author of the article.

Personally, one of the ongoing challenges in writing scripts is forking and successfully continuing operation or waiting for child processes to complete. It would be nice for 'an expert' to provide better examples and a more complete article.

One thing I would like to add, that the author appearantly overlooked. 'wait' is a shell builtin command, at least it is in bash, tcsh, ksh and zsh. My system has no 'wait command man page' as specified in the article. OTOH, 'sleep' is a standalone command and had a man page. This is important because one, wait may behave differently based on the shell used to write the script, and second, a user wanting to look up the wait command for themselves may have difficulty finding the documentation.

#

Return to CLI Magic: Wait or sleep?