home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 June
/
PCWorld_2007-06_cd.bin
/
multimedia
/
ppsee
/
PPSeeSetup.exe
/
lib
/
bsh-commands-2.0b4.jar
/
bsh
/
commands
/
bg.bsh
< prev
next >
Wrap
Text File
|
2005-05-23
|
488b
|
23 lines
/**
Source a command in its own thread in the caller's namespace
<p>
This is like run() except that it runs the command in its own thread.
Returns the Thread object control.
@method Thread bg( String filename )
*/
bsh.help.run= "usage: Thread bg( filename )";
Thread bg( String filename )
{
this.callerNameSpace = this.caller.namespace;
run() {
this.interpreter.source( filename, callerNameSpace );
}
this.thread = new Thread( this );
thread.start();
return thread;
}