This works fine, Â but I have to wait around for the job to finish in order to issue the above command, when it would be much better for another wrapper job to run that waits for the childjobs to complete, then writes the results into the variable $jobresult. For example, replace (2) with something like:
If I issue 1 & 3 above, everything executes, but thereâ€™s no data written into $jobresultÂ ( at least not that I can get out) or $errorVariableName . Is there something Iâ€™m missing with variable scoping here? Something else I'm missing altogether? Iâ€™ve tried forcing $jobresult to have global scope, with no luck. Please advise!
I want to be able to run 1 and 3 together in the background, and when they are done, both $jobresult and $errorVariable will be populated with data, and in the meantime I'm free to use the console, without having to wait to issue the receive-job