~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]
--
Jeb Beich
http://www.red-source.net/jeb
SilkJS is a thin layer of C++ glue around many of the Linux OS functions and other libraries (like MySQL and libgd2 and nurses). It's a fine replacement for shell scripting, and you can write JavaScript.
Jeb, can you tell me a bit about what you do? Can you send me a sample
script or too? How did you setup rhino so that you can run .js scripts from
the command line.
Tony Z
Gary Furash, MBA | Mosaic HR Technical Team, University of Arizona: University Information Technology Services (UITS) | http://www.mosaic.arizona.edu | 520-907-2470 | fur...@email.arizona.edu
I use rhino for pretty much anything I want to script. Most recently
was a script to scrape questions out of word docs. The script first
invoked a powershell script to convert the word doc to text, then just
did your average text parsing, and wrote the result to a file. In that
past, it's something I'd have used Python for.
Before that was a script that recursively searched some directory's
files for some text. It used linux's "find". The js was used for the
stuff I'd normally do with bash in that case: argument validation,
results formatting, etc.
In both windows and linux all I did was add the rhino interpreter
binary to my path so I'm able to do "rhino myscript.js" from wherever.
I'd be happy to send a few samples.
Jeb
On Fri, Dec 9, 2011 at 10:00 AM, Gary Furash <furas...@gmail.com> wrote:
--
Jeb Beich
http://www.red-source.net/jeb
For those who like that style of coding, it can easily be implemented
with Rhino as well.
Tony Z