About 55 results
Open links in new tab
  1. How does popen () work and how to implement it into c++ code on …

    I am having trouble with finding out how to use popen() to grab stdout from child programs in Linux to a main C++ program. I was looking around and found this snippet of code that does what I want ...

  2. How to use subprocess popen Python - Stack Overflow

    Sep 26, 2012 · Since os.popen is being replaced by subprocess.popen, I was wondering how would I convert

  3. what is the difference between popen() and system() in C

    Jan 23, 2018 · 46 popen() gives you control over the process's input or output file streams. system() doesn't. If you don't need to access the process's I/O, you can use system() for simplicity. system() is …

  4. c - How to use popen? - Stack Overflow

    May 15, 2015 · I'm trying to do inter process communication with stdin and stdout. The Posix function I found is popen, but I failed to write a working sample code. Please help me get this work. …

  5. Store output of subprocess.Popen call in a string [duplicate]

    I'm trying to make a system call in Python and store the output to a string that I can manipulate in the Python program. #!/usr/bin/python import subprocess p2 = subprocess.Popen("ntpq -p") I've t...

  6. python - What's the difference between subprocess Popen and call …

    May 24, 2015 · The call to Popen returns a Popen object. call does block. While it supports all the same arguments as the Popen constructor, so you can still set the process' output, environmental …

  7. How to do multiple arguments with Python Popen? - Stack Overflow

    How to do multiple arguments with Python Popen? Asked 13 years, 6 months ago Modified 4 years, 11 months ago Viewed 105k times

  8. Diferencia entre subprocess.run y subprocess.Popen

    Jun 18, 2019 · Tengo una duda con la librería subprocess: ¿Cual es la diferencia entre usar subprocess.run() y Popen() y en que circunstancias se debe utilizar cada una?

  9. Passing double quote shell commands in python to subprocess.Popen ...

    As a further corollary, on modern Python you want to avoid Popen whenever you can; with subprocess.check_call this is a one-liner which doesn't require the communicate() song and dance.

  10. Popen and python - Stack Overflow

    Jun 17, 2009 · NameError: name 'Popen' is not defined but I've imported both import os and import sys. Here's part of the code