open a shell prompt froma python program

Lars Stavholm stava at telcotec.se
Thu Oct 30 05:59:17 EDT 2008


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")




More information about the Python-list mailing list