RE: popen[2-4] does not work with parameters inside quotes
From: Jimmy Retzlaff (jimmy_at_retzlaff.com)
Date: 10/31/03
- Next message: Shu-Hsien Sheu: "Re: Newbie: Functions and class"
- Previous message: Martin Chilvers: "RE: delete duplicates in list"
- Maybe in reply to: Anders Dalvander: "popen[2-4] does not work with parameters inside quotes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 31 Oct 2003 07:36:08 -0800 To: <python-list@python.org>
Anders Dalvander wrote:
> os.popen[2-4] does not work with parameters inside quotes, nor do
> os.popen. At least on Windows.
>
> import os
> cmd = '"c:\\command.exe" "parameter inside quotes"'
> os.popen4(cmd)
>
> Results in the following error message:
>
> 'c:\\command.exe" "parameter inside quotes' is not recognized as an
> internal or external command,
> operable program or batch file.
Take a look at this (especially Tim Peters' very thorough explanation in
the Followups section):
http://sf.net/tracker/?func=detail&aid=512433&group_id=5470&atid=105470
Perhaps this is what you are seeing? One workaround (that isn't
beautiful) might be to create a temporary batch file with your command
line and execute that batch file.
Jimmy
- Next message: Shu-Hsien Sheu: "Re: Newbie: Functions and class"
- Previous message: Martin Chilvers: "RE: delete duplicates in list"
- Maybe in reply to: Anders Dalvander: "popen[2-4] does not work with parameters inside quotes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|