Execute command, show its output, get its exit code | Python Adventures

Execute command, show its output, get its exit code | Python Adventures

瀏覽:464
日期:2024-06-04
Problem You want to execute an external program, show its output, and get its exit code at the end. Solution Example: I used this code with FFmpeg. FFmpeg updates the output on the stdout regularly while doing a conversion. At the end I can ask if the con...看更多