About 51 results
Open links in new tab
  1. How do I create a subprocess in Python? - Stack Overflow

    Dec 20, 2010 · I would like to create a subprocess of a process. What would be a working example which shows how to accomplish this?

  2. How to use subprocess popen Python - Stack Overflow

    Sep 26, 2012 · How to use subprocess popen Python [duplicate] Asked 13 years, 2 months ago Modified 4 years, 10 months ago Viewed 694k times

  3. python - How do I execute a program or call a system command?

    return_code = subprocess.call("echo Hello World", shell=True) subprocess.run. Python 3.5+ only. Similar to the above but even more flexible and returns a CompletedProcess object when the …

  4. python - How do I use subprocess.check_output ()? - Stack Overflow

    Oct 17, 2024 · I want to run the following command from within a Python program: python py2.py -i test.txt I tried using subprocess.check_output as follows: py2output = …

  5. python - Retrieving the output of subprocess.call () - Stack Overflow

    For Python 3.5 or later, it is recommended that you use the run function from the subprocess module. This returns a CompletedProcess object, from which you can easily obtain the output …

  6. python - live output from subprocess command - Stack Overflow

    I'm using a python script as a driver for a hydrodynamics code. When it comes time to run the simulation, I use subprocess.Popen to run the code, collect the output from stdout and stderr …

  7. python - How to use `subprocess` command with pipes - Stack …

    Nov 11, 2012 · I want to use subprocess.check_output() with ps -A | grep 'process_name'. I tried various solutions but so far nothing worked. Can someone guide me how to do it?

  8. python - Is there a way to check if a subprocess is still running ...

    Apr 7, 2017 · I've found two ways of checking the status of a subprocess, but both seem to force the process to complete. One is using process.communicate() and printing the returncode, as …

  9. subprocess - running a command as a super user from a python …

    The subprocess module takes command as a list of strings so either create a list beforehand using split () or pass the whole list later. Read the documentation for more information.

  10. How to use subprocess.run method in python? - Stack Overflow

    Dec 11, 2022 · How to use subprocess.run method in python? Asked 3 years ago Modified 3 years ago Viewed 62k times