|more useful options|
question about running a system and a perl function backgroundby Anonymous Monk
|on Dec 03, 2004 at 01:33 UTC||Need Help??|
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I would like to run a system process in the background. The system process redirects output to a file. Immediatly after that process completes, I want to run a perl function that will check for a particular string in the output file.
I am running 4 such things simultaneously.
But immediatly after each of the above process completes, I want to run my perl error checking function. Please suggest how I can run that.
I was thinking I might be able to do something like:
I have made the checkerror a function, so I don't want to make it a perl script all by itself. Any advice?
Also, is there a way I can know when all the 4 processes have completed?