Provides a shell-like capability for handling external processes.
Groosh is a Unix like shell written in Groovy. It has also been known as the Process Module but was renamed (back) when it was updated to work with Groovy 1.0.
The current version of Groosh is 0.2.0
- Yuri Schimke - Founder and original contributor
- Alexander Egger [alexander.egger at campus02.at] - Current maintainer
Source and binary releases are available at http://svn.codehaus.org/groovy-contrib/groosh/releases.
A RPM package for openSUSE 10.2 can be installed via the openSUSE Build Service repository http://download.opensuse.org/repositories/home:eggeral/openSUSE_10.2.
A RPM package for openSUSE 10.3 can be installed via the openSUSE Build Service repository http://download.opensuse.org/repositories/home:eggeral/openSUSE_10.3.
If you use the openSUSE RPM, just install it and you are ready to go.
If you use the binary distribution e.g. (groosh-0.2.0-bin.tar.gz).
Untar it and copy groosh-0.2.0.jar to your $GROOVY_HOME/lib.
Try the following script to check if it worked:
def gsh = groosh.Groosh;
Have a look at the examples directory for more examples how to use
Groosh is based on Groovy 1.5.1.
The following example shows Groosh in action:
Another example :
Sometimes the name of a shell command conflicts with a Groovy method (for example ''grep''). This means that
does not execute the shell command, but the Groovy method grep(...).
As a workaround for that you may prefix any shell command with _ this means the example above becomes
The Groosh source code is available from the Codehaus SVN at http://svn.codehaus.org/groovy-contrib/groosh/trunk.
Building from the source distribution
Untar/unzip the source distribution file (e.g. groosh-0.2.0-src.tar.gz)
Groosh uses Maven 2 for building. You have to have Maven 2 installed.
Just execute mvn in the groosh directory and groosh-0.2.0.jar gets build
as well as the source and binary distribution.
Building the SVN version
Check out the source from
Building works the same as for the source distribution.
Please contact Alexander Egger [alexander.egger at campus02.at] by e-mail.