PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre5/bsh/commands/exec.bsh

#
Unknown | 9 lines | 7 code | 2 blank | 0 comment | 0 complexity | 486abd132d0767a75feb34ca04ccb48a MD5 | raw file
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}