LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   javascript like shell script? (https://www.linuxquestions.org/questions/programming-9/javascript-like-shell-script-77779/)

jpbarto 07-31-2003 03:32 PM

javascript like shell script?
 
is it possible to have javascript (.js) files executed like any other shell or perl script on your system?

if so what would go in the #! clause?

JasonSmead 07-31-2003 03:44 PM

Are you asking if you can run .js files just like you'd run a c program or something similar?

coolman0stress 07-31-2003 03:57 PM

No

Looking_Lost 07-31-2003 04:21 PM

Javascript is an interpreted lauguage as you probably know so it can only be "executed" within an environment that knows how to interpret it ie. your browser. If you can find an enfvironment to run it outside your browser then yeah, it could.

kev82 07-31-2003 05:27 PM

is it really that hard to google??

http://directory.google.com/Top/Comp...ronments/?il=1

Looking_Lost 07-31-2003 05:30 PM

Good point, but is anything really that hard to google ? No 'tis not but it's nice to have a focal point.


All times are GMT -5. The time now is 10:06 PM.