The following works (interactively via
CLASSPATH=~/jython/jython.jar ./gij.sh org.python.util.jython)
from frysk.proc import Manager
Manager.eventLoop.start ()
h = Manager.host
me = h.getSelf ()
print me
print me.getCommand()
print me.getTasks()
h.requestCreateAttachedProc (["sleep","1000"])
me.getChildren()
child = me.getChildren()[0]
but if you put it in a script and execute via
(CLASSPATH=~/jython/jython.jar ./gij.sh org.python.util.jython
script.jy) you get:
Traceback (innermost last):
File "/home/scox/accu/test.jy", line 10, in ?
KeyError: 0
It is convenient to type python scripts in an editor that will do the
indentation automatically.