LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-31-2003, 03:32 PM   #1
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
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?
 
Old 07-31-2003, 03:44 PM   #2
JasonSmead
LQ Newbie
 
Registered: Jun 2003
Location: Mobile, AL
Distribution: Redhat, Mandrake and trying to learn more about Slack
Posts: 22

Rep: Reputation: 15
Are you asking if you can run .js files just like you'd run a c program or something similar?
 
Old 07-31-2003, 03:57 PM   #3
coolman0stress
Member
 
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Posts: 288

Rep: Reputation: 30
No
 
Old 07-31-2003, 04:21 PM   #4
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
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.
 
Old 07-31-2003, 05:27 PM   #5
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
is it really that hard to google??

http://directory.google.com/Top/Comp...ronments/?il=1
 
Old 07-31-2003, 05:30 PM   #6
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 02:14 AM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM
Access unix shell using php or javascript BlackHatRob Linux - General 4 11-06-2005 10:14 PM
Cannot activate Javascript within Python script Linh Programming 0 09-22-2003 11:51 AM
Javascript: New Window Script trickykid Programming 1 03-22-2001 01:58 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration