Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22

2012-12-19 Thread Jackie Sproat
Thanks os.popen is working for me! From: Curt Hagenlocher [mailto:[email protected]] Sent: Wednesday, December 19, 2012 7:32 AM To: Jackie Sproat Cc: [email protected] Subject: Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22 Arg, bitten again by "

Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22

2012-12-19 Thread Curt Hagenlocher
m:* Curt Hagenlocher [mailto:[email protected]] > *Sent:* Tuesday, December 18, 2012 4:03 PM > *To:* Jackie Sproat > *Subject:* Re: [Ironpython-users] Using System.Diagnostics.Process > results in Errno 22 > > ** ** > > I believe StartInfo.FileName really needs

Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22

2012-12-19 Thread Jackie Sproat
, 2012 4:23 PM To: Jackie Sproat Cc: [email protected] Subject: Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22 On Tue, Dec 18, 2012 at 1:54 PM, Jackie Sproat wrote: > However, using this with IronPython, results in Errno 22: The system cannot > find th

Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22

2012-12-19 Thread Jackie Sproat
:03 PM To: Jackie Sproat Subject: Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22 I believe StartInfo.FileName really needs to be a file name, and not a command line. Set it to java.exe and put everything else into Arguments. On Tue, Dec 18, 2012 at 1:54 PM, Jackie

Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22

2012-12-18 Thread Jeff Hardy
On Tue, Dec 18, 2012 at 1:54 PM, Jackie Sproat wrote: > However, using this with IronPython, results in Errno 22: The system cannot > find the file specified... > > file_name = 'java -jar "C:\Program Files\Sikuli X\sikuli-script.jar" ' My guess is the backslashes are causing problems. You ha

Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22

2012-12-18 Thread Jackie Sproat
Using python I have no problem starting my process with subprocess.Popen('java -jar "C:\Program Files (x86)\Sikuli X\sikuli-script.jar" ' + finalname, shell=True) But, because the select module is not available, you can't use the subprocess module in IronPython. So, I have to use System.Diagno