Assuming your scripts are not multi-threaded, this shouldn't be an issue and the scripts should run on the GroovyShell instance sequentially. Has this not been the case?
A good workman is known by his tools.
Joined: Jul 17, 2001
No. My main script reads a list of scripts from a table and loops through and fires off a script for each one (using the GroovyShell.run command). The 1st script is still running when the next one is picked up. But now that you mention it, the first script does run a Thread.
I think I need something similar to the cmd.execute() where I can issue a process.waitFor()
I'm trying to fire off the groovy command using this syntax but so far have not had much luck.