2018 up to now | 2017 | 2016 | 2015 | 2014 | 2013 | 2012

Mailing List - Entries of 2012


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] shell command execution in QF-Test -- how to?


  • Subject: Re: [QF-Test] shell command execution in QF-Test -- how to?
  • From: "Berg, Klaus-Peter" <klaus-peter.berg@?.com>
  • Date: Tue, 14 Feb 2012 10:18:59 +0100

Hello Hajnal,
 
I guess since Java 5 you can use the java.lang.ProcessBuilder class.
ProcessBuilder.start() returns a Process object, where you can call: getOutputStream() , getErrorStream().
 
Unfortenately I have no Jython script example like the one you are using now:

import os 

os.system(’systeminfo > temp.txt’)

I'm using Groovy instead of Jython with respect to QF-Test...

 

Best regards

Klaus Peter