All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bsh.util.commands.exec.bsh Maven / Gradle / Ivy

The newest version!
/**
	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 ) 
{
	this.proc = Runtime.getRuntime().exec(arg);
	this.din = new DataInputStream( proc.getInputStream() );
	while( (line=din.readLine()) != null )
		print(line);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy