$ cd /tmp/a
$ groovyclient -e "org.codehaus.groovy.tools.shell.Main.main(args)"
Groovy Shell (1.7.6, JVM: 1.6.0_22)
Type 'help' or '\h' for help.
groovy:000>
console B:
$ cd /tmp/b
$ groovyclient -e "org.codehaus.groovy.tools.shell.Main.main(args)"
$
===> immediately return to prompt (Cannot change current directory because another session is running on different directory)
$ groovyclient -e "org.codehaus.groovy.tools.shell.Main.main(args)"
Groovy Shell (1.7.6, JVM: 1.6.0_22)
Type 'help' or '\h' for help.
groovy:000>
===> at 2nd time, you can successfully start a shell...
console A:
console B:
===> immediately return to prompt (Cannot change current directory because another session is running on different directory)
===> at 2nd time, you can successfully start a shell...