Javascript Shell Scripting With Rhino

First
# sudo apt-get install rhino
Then, create the file rhinoTest.js:
#!/usr/bin/env rhino print("hello world")
Don't forget to make it executable:
# chmod +x rhinoTest.js
Now run it!

No comments

Post a Comment