Keep package running while child processes are executing

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 3 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
Heli0s
Posts: 3
Last visit: Sun Apr 16, 2023 10:00 am

Keep package running while child processes are executing

Post by Heli0s »

I have an executable package that accepts a number of command line parameters, performs and execution, and displays a Message Box in the end. Currently, when I run the package, the commands are executed correctly, however, the executable exits immediately while the executions continue in the background. Is there a way to have the executable keep running while the jobs are being executed?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Keep package running while child processes are executing

Post by jvierra »

You will have to run in a wait loop and check the jobs for completion.
This topic is 3 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked