How to run a bash shell script from a html button click?

by David   Last Updated May 16, 2019 03:02 AM

If I have a simple bash script

#!/bin/bash
touch ./test.txt

that I want to be activated on the push of a button on any simple html page how would I go about this?

html looking something like this (tho i know it's wrong)

<form action="./test.sh">
        <input type="submit" value="Open Script">
 </form>

Thanks for any help!

Tags : bash scripts html


Related Questions


Updated January 06, 2019 03:02 AM

Updated August 30, 2015 20:01 PM

Updated April 20, 2017 08:02 AM

Updated June 02, 2015 04:00 AM

Updated January 27, 2019 08:02 AM