open a shell prompt froma python program

gaurav kashyap gauravkec2005 at
Thu Oct 30 11:13:52 CET 2008

On Oct 30, 2:59 pm, Lars Stavholm <st... at> wrote:
> gaurav kashyap wrote:
> > Dear all,
> > Can u tell me a python program that when executed in a shell
> > prompt,opens another shell prompt.
> > Simply i want to open a shell prompt from a python program.
> I think you're looking for:
> import os
> os.system("/bin/sh")


Its not opening a new window,
I want to do that only from already opened shell prompt window

More information about the Python-list mailing list