You should probably use Python's subprocess module's Popen method with the
Shell flag set to True...or you could use os.system, although I think it
will be deprecated soon.
Mike
···
-----Original Message-----
From: Nick Craig-Wood [mailto:nick@craig-wood.com]
Sent: Wednesday, August 15, 2007 1:19 PM
To: wxPython-users@lists.wxwidgets.org
Subject: wx.Execute and command line escaping
I've got some commands to run with rather complicated command
lines which spaces within quotes within quotes etc and all
sorts of characters the shell would like to interpret.
What are the rules used by wx.Execute to parse the command string?
Are these the same on windows and linux?
Does it go via the shell under linux?
Is it possible to use the wxExecute() with the array of
arguments from wxPython?
Sorry for all the questions - I've been unable to find the
answers in the wx manual!
Thanks
Nick
--
Nick Craig-Wood <nick@craig-wood.com> --
http://www.craig-wood.com/nick
re.escape() might help you
not sure just quickly read through your mail
···
Op 17-aug-07, om 15:39 heeft Mike Driscoll het volgende geschreven:
-----Original Message-----
From: Nick Craig-Wood [mailto:nick@craig-wood.com]
Sent: Wednesday, August 15, 2007 1:19 PM
To: wxPython-users@lists.wxwidgets.org
Subject: wx.Execute and command line escaping
I've got some commands to run with rather complicated command
lines which spaces within quotes within quotes etc and all
sorts of characters the shell would like to interpret.
What are the rules used by wx.Execute to parse the command string?
Are these the same on windows and linux?
Does it go via the shell under linux?
Is it possible to use the wxExecute() with the array of
arguments from wxPython?
Sorry for all the questions - I've been unable to find the
answers in the wx manual!
Thanks
Nick
--
Nick Craig-Wood <nick@craig-wood.com> --
http://www.craig-wood.com/nick
You should probably use Python's subprocess module's Popen method with the
Shell flag set to True...or you could use os.system, although I think it
will be deprecated soon.
Mike