Lines Matching refs:Popen

42 meet your needs, use the underlying :class:`Popen` interface.
53 that of the :class:`Popen` constructor - this functions passes all
73 Use :class:`Popen` with the :meth:`communicate` method when you
87 that of the :class:`Popen` constructor - this functions passes all
111 Use :class:`Popen` with the :meth:`communicate` method when you
127 same as that of the :class:`Popen` constructor, except that *stdout* is
129 passed directly through to the :class:`Popen` constructor.
160 based on the child process error volume. Use :class:`Popen` with
167 to :class:`Popen` and indicates that a pipe to the standard stream should be
173 Special value that can be used as the *stderr* argument to :class:`Popen` and
203 To support a wide variety of use cases, the :class:`Popen` constructor (and
259 from this vulnerability; see the Note in the :class:`Popen` constructor
267 detail in the :class:`Popen` constructor documentation.
270 Popen Constructor
274 the :class:`Popen` class. It offers a lot of flexibility so that developers
279 .. class:: Popen(args, bufsize=0, executable=None, stdin=None, stdout=None, \
287 :class:`Popen` are as follows.
311 >>> p = subprocess.Popen(args) # Success!
334 itself. That is to say, :class:`Popen` does the equivalent of::
336 Popen(['/bin/sh', '-c', args[0], args[1], ...])
440 A :exc:`ValueError` will be raised if :class:`Popen` is called with invalid
458 Popen Objects
461 Instances of the :class:`Popen` class have the following methods:
464 .. method:: Popen.poll()
467 :attr:`~Popen.returncode` attribute.
470 .. method:: Popen.wait()
473 :attr:`~Popen.returncode` attribute.
483 .. method:: Popen.communicate(input=None)
493 the Popen object with ``stdin=PIPE``. Similarly, to get anything other than
503 .. method:: Popen.send_signal(signal)
516 .. method:: Popen.terminate()
525 .. method:: Popen.kill()
537 Use :meth:`~Popen.communicate` rather than :attr:`.stdin.write <Popen.stdin>`,
538 :attr:`.stdout.read <Popen.stdout>` or :attr:`.stderr.read <Popen.stderr>` to avoid
543 .. attribute:: Popen.stdin
549 .. attribute:: Popen.stdout
555 .. attribute:: Popen.stderr
562 .. attribute:: Popen.pid
570 .. attribute:: Popen.returncode
580 Windows Popen Helpers
590 structure is used for :class:`Popen` creation.
630 :class:`Popen` is called with ``shell=True``.
673 This flag is always set when :class:`Popen` is created with ``shell=True``.
677 A :class:`Popen` ``creationflags`` parameter to specify that a new process
726 p1 = Popen(["dmesg"], stdout=PIPE)
727 p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE)
778 pid = Popen(["/bin/mycmd", "myarg"]).pid
790 Popen([path] + args[1:])
796 Popen(["/bin/mycmd", "myarg"], env={"PATH": "/usr/bin"})
806 pipe = Popen("cmd", shell=True, bufsize=bufsize, stdout=PIPE).stdout
812 pipe = Popen("cmd", shell=True, bufsize=bufsize, stdin=PIPE).stdin
818 p = Popen("cmd", shell=True, bufsize=bufsize,
828 p = Popen("cmd", shell=True, bufsize=bufsize,
839 p = Popen("cmd", shell=True, bufsize=bufsize,
851 p = Popen(["/bin/ls", "-l"], bufsize=bufsize, stdin=PIPE, stdout=PIPE)
862 process = Popen("cmd", shell=True, stdin=PIPE)
876 p = Popen("somestring", shell=True, bufsize=bufsize,
887 p = Popen(["mycmd", "myarg"], bufsize=bufsize,
892 :class:`subprocess.Popen`, except that:
894 * :class:`Popen` raises an exception if the execution fails.
901 ``close_fds=True`` with :class:`Popen`.