Execute a child program in a new process. For a complete description of the arguments see the Python documentation. Arguments: args: A string, or a sequence of program arguments. bufsize: supplied as the buffering argument to the open() function when creating the st
| 756 | |
| 757 | |
| 758 | class Popen: |
| 759 | """ Execute a child program in a new process. |
| 760 | |
| 761 | For a complete description of the arguments see the Python documentation. |
| 762 | |
| 763 | Arguments: |
| 764 | args: A string, or a sequence of program arguments. |
| 765 | |
| 766 | bufsize: supplied as the buffering argument to the open() function when |
| 767 | creating the stdin/stdout/stderr pipe file objects |
| 768 | |
| 769 | executable: A replacement program to execute. |
| 770 | |
| 771 | stdin, stdout and stderr: These specify the executed programs' standard |
| 772 | input, standard output and standard error file handles, respectively. |
| 773 | |
| 774 | preexec_fn: (POSIX only) An object to be called in the child process |
| 775 | just before the child is executed. |
| 776 | |
| 777 | close_fds: Controls closing or inheriting of file descriptors. |
| 778 | |
| 779 | shell: If true, the command will be executed through the shell. |
| 780 | |
| 781 | cwd: Sets the current directory before the child is executed. |
| 782 | |
| 783 | env: Defines the environment variables for the new process. |
| 784 | |
| 785 | text: If true, decode stdin, stdout and stderr using the given encoding |
| 786 | (if set) or the system default otherwise. |
| 787 | |
| 788 | universal_newlines: Alias of text, provided for backwards compatibility. |
| 789 | |
| 790 | startupinfo and creationflags (Windows only) |
| 791 | |
| 792 | restore_signals (POSIX only) |
| 793 | |
| 794 | start_new_session (POSIX only) |
| 795 | |
| 796 | process_group (POSIX only) |
| 797 | |
| 798 | group (POSIX only) |
| 799 | |
| 800 | extra_groups (POSIX only) |
| 801 | |
| 802 | user (POSIX only) |
| 803 | |
| 804 | umask (POSIX only) |
| 805 | |
| 806 | pass_fds (POSIX only) |
| 807 | |
| 808 | encoding and errors: Text mode encoding and error handling to use for |
| 809 | file objects stdin, stdout and stderr. |
| 810 | |
| 811 | Attributes: |
| 812 | stdin, stdout, stderr, pid, returncode |
| 813 | """ |
| 814 | _child_created = False # Set here since __del__ checks it |
| 815 |
no outgoing calls