Ivor O’Connor

June 29, 2009

CLI To JavaScript

Filed under: Uncategorized — ioconnor @ 4:37 am

Here is how to access JavaScript from the command line:

sudo apt-get install spidermonkey-bin

pacific-blue@pacific-blue:~$ cat common/bin/js-cli-example.js

print (“Hello World”);
pacific-blue@pacific-blue:~$ js-cli-example.js
Hello World


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: