Home | History | Annotate | Download | only in python2.7

Lines Matching defs:PIPE

72 Valid values are PIPE, an existing file descriptor (a positive
73 integer), an existing file object, and None. PIPE indicates that a
74 new pipe to the child should be created. With None, no redirection
193 If the stdin argument is PIPE, this attribute is a file object
197 If the stdout argument is PIPE, this attribute is a file object
202 If the stderr argument is PIPE, this attribute is file object that
232 output = Popen(["mycmd", "myarg"], stdout=PIPE).communicate()[0]
235 Replacing shell pipe line
239 p1 = Popen(["dmesg"], stdout=PIPE)
240 p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE)
302 pipe = os.popen("cmd", mode='r', bufsize)
304 pipe = Popen("cmd", shell=True, bufsize=bufsize, stdout=PIPE).stdout
306 pipe = os.popen("cmd", mode='w', bufsize)
308 pipe = Popen("cmd", shell=True, bufsize=bufsize, stdin=PIPE).stdin
314 stdin=PIPE, stdout=PIPE, close_fds=True)
323 stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=True)
333 stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
344 p = Popen(["/bin/ls", "-l"], bufsize=bufsize, stdin=PIPE, stdout=PIPE)
349 pipe = os.popen("cmd", 'w')
351 rc = pipe.close()
355 process = Popen("cmd", 'w', shell=True, stdin=PIPE)
367 stdin=PIPE, stdout=PIPE, close_fds=True)
378 stdin=PIPE, stdout=PIPE, close_fds=True)
386 * stdin=PIPE and stdout=PIPE must be specified.
440 __all__ = ["Popen", "PIPE", "STDOUT", "call", "check_call",
471 PIPE = -1
568 process = Popen(stdout=PIPE, *popenargs, **kwargs)
718 if stdin == PIPE:
720 if stdout == PIPE:
722 if stderr == PIPE:
784 # Optimization: If we are only using one pipe, or no pipe at
832 elif stdin == PIPE:
845 elif stdout == PIPE:
858 elif stderr == PIPE:
956 # Child is launched. Close the parent's copy of those pipe
959 # output pipe are maintained in this process or else the
960 # pipe will not close when the child process exits and the
1099 elif stdin == PIPE:
1109 elif stdout == PIPE:
1119 elif stderr == PIPE:
1148 """Create a pipe with FDs set CLOEXEC."""
1153 r, w = os.pipe()
1214 # Close parent's pipe ends
1244 # Close pipe fds. Make sure we don't close the
1544 plist = Popen(["ps"], stdout=PIPE).communicate()[0]
1559 p1 = Popen(["dmesg"], stdout=PIPE)
1560 p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE)
1586 p1 = Popen("set", stdout=PIPE, shell=True)
1587 p2 = Popen('find "PROMPT"', stdin=p1.stdout, stdout=PIPE)