Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-26-2007, 04:47 AM
|
#1
|
LQ Newbie
Registered: Sep 2007
Posts: 6
Rep:
|
JavaScript
hi all,
Thus anybody know how to execute Shell Script from JavaScript in
Redhat .If yes plz give the code for it
Thankx in advance
|
|
|
09-26-2007, 05:54 AM
|
#2
|
Senior Member
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142
Rep:
|
What exactly do you want to do?
It might be easier to do it with Java Script.
Please type complete words, and try to avoid unnecessary abbreviations and loose phonetical spelling (thus != does)
Last edited by oskar; 09-26-2007 at 05:56 AM.
|
|
|
09-26-2007, 06:19 AM
|
#3
|
LQ Newbie
Registered: Sep 2007
Posts: 6
Original Poster
Rep:
|
Quote:
Originally Posted by oskar
What exactly do you want to do?
It might be easier to do it with Java Script.
Please type complete words, and try to avoid unnecessary abbreviations and loose phonetical spelling (thus != does)
|
hi
i have a shell script named start.sh i need to execute this shell script from java Script ,is there any way to do so.
What do u mean it is easier is there a way.
for eg in java we have Runtime.exec();
something like that
Thankx in advance
|
|
|
09-26-2007, 06:21 AM
|
#4
|
LQ Newbie
Registered: Sep 2007
Posts: 6
Original Poster
Rep:
|
hi
i have a shell script named start.sh i need to execute this shell script from java Script ,is there any way to do so.
What do u mean it is easier is there a way.
for eg in java we have Runtime.exec();
something like that
Thankx in advance
|
|
|
09-26-2007, 06:30 AM
|
#5
|
Member
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159
Rep:
|
There are some techniques here:
http://www.faqts.com/knowledge_base/.../31646/fid/124
... but it looks like they may be Microsoft specific. The first technique might work more widely (changing document.location.href), though that replaces the current document entirely as I understand it, which may not be what you want.
HTH,
-nick
|
|
|
09-26-2007, 06:49 AM
|
#6
|
LQ Newbie
Registered: Sep 2007
Posts: 6
Original Poster
Rep:
|
Thankx , but it does not work in case of mozilla in rehat ..
If there is any other solution plz let me know
|
|
|
09-26-2007, 07:25 AM
|
#7
|
Member
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159
Rep:
|
If the Mozilla platform is your target, rather than a general browser running JavaScript, you can certainly run external programs by calling into the supporting Mozilla framework from JavaScript.
I don't know precisely how to do this (despite having read the book!), but it would help you focus your search. I'd start by looking at one of the Thunderbird or Firefox plugins that you know must launch an external program (like Enigmail, the GPG email plugin).
Cheers,
-nick
|
|
|
09-26-2007, 07:28 AM
|
#8
|
Member
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159
Rep:
|
|
|
|
09-28-2007, 02:03 AM
|
#9
|
LQ Newbie
Registered: Sep 2007
Posts: 6
Original Poster
Rep:
|
Thankx Nick the url u gave helped a lot .Now i can execute shell script
in JavaScript
|
|
|
All times are GMT -5. The time now is 12:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|