Re: problem with single-quote and double-quote when using subprocess.

2008-11-04 Thread Marc 'BlackJack' Rintsch
On Tue, 04 Nov 2008 03:26:21 -0800, MRAB wrote: > On Nov 3, 10:47 pm, Evan <[EMAIL PROTECTED]> wrote: >> 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 f

Re: problem with single-quote and double-quote when using subprocess.

2008-11-04 Thread MRAB
On Nov 3, 10:47 pm, Evan <[EMAIL PROTECTED]> 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 python

Re: problem with single-quote and double-quote when using subprocess.

2008-11-03 Thread alex23
On Nov 4, 8:47 am, Evan <[EMAIL PROTECTED]> wrote: > It always failed. > It also failed. > Does anybody have a good suggestion for this matter? thanks in > advance. What do you mean by "it failed"? It always helps to paste the actual error message you received. -- http://mail.python.org/mailman/li

problem with single-quote and double-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\'