home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Shareware
/
Comunicatii
/
advwebrank
/
awr.msi
/
disk1.cab
/
bsh_1.2b6.jar
/
bsh
/
commands
/
exec.bsh
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
2002-05-26
|
362 b
|
14 lines
/**
Start an external application using the Java Runtime exec() method.
Display any output to the standard BeanShell output using print().
*/
bsh.help.exec = "usage: exec( String arg )";
exec( String arg ) {
proc = Runtime.getRuntime().exec(arg);
din = new DataInputStream( proc.getInputStream() );
while( (line=din.readLine()) != null )
print(line);
}