You can also start the subprocess and then let it run asynchronously, retrieving
output and the status in your main process whenever you need it. Use the
start() method to start an asynchronous
process, the isRunning() method
to check if the process is done and the
getOutput() method to get the output: