[GLLUG] Questions about shell scripting

Clay Dowling clay at lazarusid.com
Fri Jun 15 06:59:33 EDT 2012


On 6/14/2012 6:20 PM, David Lee Lambert wrote:
>
> 2 quick questions:
>
> 1:  Is it possible to run a shell function in the background with "&"?
>
> 2:  What's a good idiom for starting several jobs in the background,  
> then waiting for them all to complete,  returning nonzero and printing 
> an error if any of them fail?
>
This doesn't sound like a great task for a shell script.  A python 
script or C program, on the other hand, can do this without breaking a 
sweat if you look up process control in any manual (either the Python 
book by O'Rielly or "Programming in the Unix Environment").

Clay


More information about the linux-user mailing list