Skip to content
Advertisement

Tag: rhino

How do I execute javascript programs from the Linux shell?

I would like to execute my javascript programs with the Rhino shell without making the first line #!/bin/sh. ‘#’ isn’t a comment character in javascript. I also don’t want to have to have a .js extension. Is this possible? I remember reading something a long while about a method of making java programs to run without an explicit interpreter. Google

Advertisement