RuntimeUtil ExampleΒΆ


You can find these scripts inside the folder pmis/STND_PMIS/test/console/example.
If you want to execute them, you can use the Jython Console from the devtool menu.

filename =>

import jarray
from import *
from pmis.common.util import RuntimeUtil

eos = ByteArrayOutputStream()
os = ByteArrayOutputStream()

envps = jarray.array(['net','use', 'Z:', '\\DISCO-HP\netdrive'], String )
RuntimeUtil.getExecuteCommand(envps, eos, os)

print eos.toString()
print os.toString()