From Python to Shell
dadapapa at googlemail.com
Thu Jun 8 16:25:00 CEST 2006
> Im not a total noob but i don't know the command and the module to go
> from python to the default shell.
there are several ways depending on what exactly you want to achieve:
terminates the python process and gives controll back to the shell
execute command string in a subshell. result is the return value of
starts command as a subprocess and allows you to "communicate" with
that process, i.e. lets you send something to its stdin and
from its stdout and stderr streams. have a look at the docs of that
for more information.
- harold -
More information about the Python-list