Jump to content

Javascript execute Shell Script Function


Recommended Posts

Dear all,

I managed a web interface under Linux/Apache.
This interface must start and stop some shell scripts, through HTML buttons.

My goal is to use just only one HTML button to do 3 actions:

1- Stop a shell script
2- Open a new HTML page
3- Start a new shell script

So, usually, I will drive it like this:

<script language="javascript">
function button() 
{
	function1();
  	function2();
  	function3();
}
</script>

But my problem is what kind of Javascript function is able to start and stop a shell script ?
I found various answer with PHP, but I don't want use it ! Just HTML/JAVASCRIPT.

Can you please help me ?

Thank you for your support and help.

Best regards,

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...