I am not able to call a shell script program from javascript(for example if someone will click a button in webpage then a script will run and will throw some output)???
Because of security concerns, you cannot do this like you can e.g. call a binary program from a shell script, some program from Python using If you want this kind of functionality, the way to go is to:
I have used this mechanism to allow printing, on the local machine, of multiple selected Word documents. The submit of the list of documents is redirected to the local webserver (using XML-RPC) that then retrieves the documents, and starts Word in batch mode to print them all. |
|||
|
Here is an (untested) example using Javascript and PHP and the methodology explained by Anthon. Do not focus on syntax or whether it works or not, you can fix that later. Notice the pater with strong emphasis on data validation. Javascript:
} A Rudimentary PHP Template:
|
|||
|