Re: jython on widows server 2012 r2
KengHeng <[email protected]>
| Newsgroups | gmane.comp.lang.jython.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I tried with Jython 2.5.4rc1 at Windows XP and Windows 2012 R2, the
issue remain same. I am using java 1.6 update 45.
On 4/20/15 4:45 PM, Jeff Allen wrote:
> I tried this on Windows 7 and it works in Jython 2.5.4rc1 and 2.7rc2.
> You should omit the \ before the >, or you get two listings.
>
> I had to create c:\temp, or it fails with "The system cannot find the
> path specified".
>
> Jeff Allen
>
>
> On 20/04/2015 08:30, KengHeng wrote:
>> More info, I test it on jython 2.5.1 is not working for the output file,
>> however, for jython 2.1, it is working, the output file is generated at
>> jython 2.1.
>>
>> On 4/20/15 2:54 PM, KengHeng wrote:
>>> Hi All, I've test a jython script below running at windows 2012 r2 env:
>>>
>>> a)
>>> import java,os
>>> os.system("dir c:\\")
>>> => is working
>>>
>>> b)
>>> import java,os
>>> os.system("dir c:\\ \> c:\\temp\\out.txt")
>>>
>>> =>is not working
>>> =>no error, but no output at c:\temp\out.txt
>>>
>>>
>
>
>
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF