I have a basic HTML file that takes inputs. I need to use those inputs to run a Bash file.
Right now I have:
function generate(){
var arg=document.getElementById("site").value;
RUN THE FILE WITH ./filename arg
}
Argument: <input type="text" id="arg" maxlength="3" size="3">
<br><input type="button" value="run file" onclick="generate()">
How can I run the bash file (./file arg)?
Mohammad Ali Rony
4,9413 gold badges23 silver badges36 bronze badges
-
Related and possibly a duplicate: stackoverflow.com/q/44443164/9313033CoffeeBasedLifeform– CoffeeBasedLifeform2018年11月06日 18:32:32 +00:00Commented Nov 6, 2018 at 18:32
-
check out [this link(bignosebird.com/prcgi.shtml) and related guidance on how to create and call a CGI.Paul Hodges– Paul Hodges2018年11月06日 18:53:19 +00:00Commented Nov 6, 2018 at 18:53
default