Re: [Tutor] using variables as args

2006-05-08 Thread Jerome Jabson
Thank you, Alan! I'll try using POPEN. Jerome --- Alan Gauld <[EMAIL PROTECTED]> wrote: > > I'm trying to start a shell script with 4 > arguments > > from my python script. I'm having problems trying > to > > figure out the best way to do this. > > Use a format string: > > cmd = "myscript %s

Re: [Tutor] using variables as args

2006-05-08 Thread Alan Gauld
> I'm trying to start a shell script with 4 arguments > from my python script. I'm having problems trying to > figure out the best way to do this. Use a format string: cmd = "myscript %s %s %s %s" os.system(cmd % (p1,p2,p3,p4)) OR cmdstr = cmd % p1,p2,p3,p4 os.system(cmdstr) The second form i

[Tutor] using variables as args

2006-05-08 Thread Jerome Jabson
Hello, I'm trying to start a shell script with 4 arguments from my python script. I'm having problems trying to figure out the best way to do this. I'm using variables as the arguments to the shell script. I want to use popen3 to keep track of stdin, stdout, and err, but from the docs I only see u