How can I know libreoffice had converted the files to pdf?

Recently I use PHP to convert some files to pdf and then show them. In order to solve the concurrency problem, I use the command line “soffice ‘-env:UserInstallation=file:///D:/tempFile/p0/’ --accept=’socket,host=0.0.0.0,port=8100;urp;’ --nodefault --nofirststartwizard --nolockcheck --convert-to pdf D:\big.doc --outdir D:\tempFile --headless 2>&1” to start several processes to convert several files at the same time, but how can I receive information from these processes , so that php can judge files had been converted or they were in trouble? Is there other ways to solve the concurrency problem?