473,242 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,242 software developers and data experts.

how to run a shell script using javascript

Hi,
I have a button. I want to run a shell script when i click that button.
My HTML code is given below:
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <input type = "button" value = "run script" onclick = "some javascript func to run script()">
  6. </body>
  7. </html>
  8.  
Can anybody help me out for this problem?
Oct 28 '08 #1
3 9975
acoder
16,027 Expert Mod 8TB
This won't be possible with standard JavaScript on a normal web page. What are you trying to do?
Oct 28 '08 #2
This won't be possible with standard JavaScript on a normal web page. What are you trying to do?
Thanks for ur reply.
I have two buttons one is for start server and other for stop server.
To start a server one shell script is there and for stop also.
I want to do that when i click start button it should start my server for that i have to run that shell script.
Using java api Runtime and Process i can run shell script but by clicking a button how to run shell script i do not know.
Can you help me out?????
Oct 29 '08 #3
acoder
16,027 Expert Mod 8TB
If it's a shell script on the server, then use Ajax to call the server-side script. That's if you want to avoid a page unload. If not, you could just submit the page. If you're not familiar with Ajax, check out some of the links in the Off-site Links sticky.
Oct 29 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: C.Joseph Drayton | last post by:
I have a problem that I am hoping someone can help me with. First let me describe the problem. I have an HTML form that in one field has an onBlur call to a JavaScript function. When you exit the...
4
by: korund | last post by:
Is there any difference to read & write to windows Registry with VBScript or JavaScript? Both scripting languages have similar syntax. What is preferable use for this? thanks.
0
by: Aashif | last post by:
I want to call Unix Shell script which is available in other Server (Unix server) from windows application using C#. Currently the shell script runs the C program but the GUI is not good, So I want...
1
by: nanosuna | last post by:
Hi, I was given a task to translate a unix bourne shell script that does file renaming and string replacement on a server . I am not too familiar with the capabilites of JavaScript, so I was...
0
by: shaheda begum | last post by:
Hi everyone, Can anyone guide me how to link archive file(libxyssl.a) to my shell script( .sh file) in Perl using swig interface. Thank you in advance.
7
by: Samuel A. Falvo II | last post by:
I have a shell script script.sh that launches a Java process in the background using the &-operator, like so: #!/bin/bash java ... arguments here ... & In my Python code, I want to invoke...
3
by: xtremebass | last post by:
Hi , I am want to run the shell script to run every 10 minutes of interval ,so that i have used crontab command for scheduling the shell script .. it cant works . i have checked wall command in...
2
by: jigarshah89 | last post by:
i have some problem to shell script using php... my script is file is a.sh::: #!/bin/sh echo "ATZ0" > /dev/ttyACM0 echo "AT+CSCA?" > /dev/ttyACM0 echo "AT+CMGF=1" > /dev/ttyACM0 ...
3
by: Naveen Naik | last post by:
Hi, I am calling a unix script from my c program, but i need to capture the return value of the script. The system() function would return whether the script was successfully executed or not. But...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.