home *** CD-ROM | disk | FTP | other *** search
- /**
- 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 ) {
-
- callerNameSpace = this.caller.namespace;
- run() {
- this.interpreter.source( filename, callerNameSpace );
- }
-
- thread = new Thread( this );
- thread.start();
- return thread;
- }
-