0

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
asked Nov 6, 2018 at 17:46
2

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.