How do I run a beanshell script on my Mac?

Posted by jonalv on Super User See other posts from Super User or by jonalv
Published on 2011-09-12T15:51:41Z Indexed on 2011/11/29 1:54 UTC
Read the original article Hit count: 319

Filed under:

My Ubuntu-friend told me to testrun a Beanshell script by doing:

bsh #filename#

and when I told him that I don't know what bsh is nor have it he told me:

sudo apt-get install bsh

Being on a Mac I instead ran:

sudo port install beanshell

But still no bsh command available. A listing of the package content revealed a jar file named:

/opt/local/share/java/bsh.jar

but when I try to run that with my script file a complete Window manager written in Java starts up (and does not run the script file btw). Now, clearly I am doing something wrong, I am sure there must be a way of running beanshell scripts on a mac terminal although it does seem more natural for the linux users. What am I doing wrong and what should I do to run that script?

© Super User or respective owner

Related posts about osx