RuntimeUtil ExampleΒΆ

Note

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 => ex33.py

import jarray
from java.io 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()