Bash script programming problem
I have the following items in the example.sh file
./function1 ./function2 ./manualFunction3 ./function4 functionX will automatically run, however, manualFunction3 need some people's coorporation and time is not predictable, which means I can't use sleep to wait for its completion. So my question is, when I have finished ./manualFunction3, how does the scripts knows and continues to run function4? Thanks! |
Is Function4 dependent on manualFunction3?
If so, why NOT have manualFunction3 call Function4 when it completes everything else? Are you currently having problems with your script? Normally, functions in a script are executed one at a time, each waiting for the previous function to complete before starting... The way you have your's set though, looks like you are essentially spawning sub-process, which if so, you really have no control over, because once started, they are their own process... What exactly is your script trying to accomplish? |
Code:
./malFunction3 && ./function4 |
Quote:
Code:
./function1 |
Let me have try this one
Thanks! Quote:
|
I can't because I can't edit and recompile manualFunction3.
And they are independent two functions and can't be called. Thanks! Quote:
|
All times are GMT -5. The time now is 02:09 AM. |