source: trunk/j/src/bsh/commands/exec.bsh @ 2

Last change on this file since 2 was 2, checked in by piso, 18 years ago

Initial checkin.

File size: 218 bytes
Line 
1
2bsh.help.exec = "usage: exec( String arg )";
3
4exec( String arg ) {
5  proc = Runtime.getRuntime().exec(arg);
6  din = new DataInputStream( proc.getInputStream() );
7  while( (line=din.readLine()) != null )
8    print(line);
9}
Note: See TracBrowser for help on using the repository browser.