Re: problem with quote and single-quote when using "subprocess"

2008-11-03 Thread Marc 'BlackJack' Rintsch
On Mon, 03 Nov 2008 14:45:22 -0800, Evan wrote: > Hello - > > i'm trying to call subprocess.popen on the 'command-based' function in > linux. When I run the command from the shell, like so: > > goset -f ' "%s %s" name addr ' file_name > > it works fine > > however when I try to do it in pytho

problem with quote and single-quote when using "subprocess"

2008-11-03 Thread Evan
Hello - i'm trying to call subprocess.popen on the 'command-based' function in linux. When I run the command from the shell, like so: goset -f ' "%s %s" name addr ' file_name it works fine however when I try to do it in python like so: p = subprocess.Popen(["goest",'-f \'\"%s %s\" name addr\'