I want to make a single button and an input box on an html page input.html
, which when clicked should execute a shell script test.sh
. The shell script should take that input box string as parameter. The shell script creates an html file out.html
(I have created the shell script, which when takes an input string, produces an html file), which then I want to show on original html page input.html
.
How can I do this ? Assume everything is running locally i.e. no server thing here.
Browsers won't allow that, that would break the Internet and make hackers very happy if it was possible, yet this can be done with Firefox/Chrome addons or IE activeX controls.
Normally, websites sites that want you to run a script on your terminal will give you a command like this one that you would copy and paste to your terminal:
Examples:
You might want to try loading that from server side language (like PHP)