From: Kevin M. <qk...@lm...> - 2001-07-10 13:45:00
|
OK, this works, but it just returns '0'. I guess this the return code from the 'ls -al' command. Where is the actual output? On Tue, 10 Jul 2001, D-Man wrote: > On Tue, Jul 10, 2001 at 06:20:27AM -0700, Glen Starchman wrote: > | On Tue, 10 Jul 2001, Kevin McNamee wrote: > | > Is there no possibility to run arbitrary system commands without writing > | > Java code? > | > | > | In a nutshell, no... however, it is not Java code you will be > | writing... it will be Jython :-) > | > | For example: > | > | from java.lang import * > | Process p = Runtime.getRuntime().exec("ls -al") > ^^^^^^^ > > :-) That is Java. Jython doesn't use type declarations. > > | p.waitFor() > > -D > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > http://lists.sourceforge.net/lists/listinfo/jython-users > _________________________________________________ Name/Title : Kevin McNamee, Software Consultant Phone : +46 13 32 1165 E-Mail : kev...@er... |