Re: Subprocess module: running an interactive shell

2009-03-14 Thread Roman Medina-Heigl Hernandez
Karthik Gurusamy escribió: > On Mar 13, 6:39 pm, Roman Medina-Heigl Hernandez > wrote: >> Hi, >> >> I'm experimenting with Python and I need a little help with this. What I'd >> like is to launch an interactive shell, having the chance to send first >&

Subprocess module: running an interactive shell

2009-03-13 Thread Roman Medina-Heigl Hernandez
Hi, I'm experimenting with Python and I need a little help with this. What I'd like is to launch an interactive shell, having the chance to send first several commands from python. I've written the following code: = #!/usr/bin/env python import sys, subprocess exe = "/bin/sh" param