0

Say I have a script.sh as:

echo $1
echo $2
echo $3

And I have a web page served by node.js at localhost:3000/page

I would like to create the page like this (jsfiddle):

script.sh <input type="text" name="param1" />
<input type="text" name="param1" /> <input type="text" name="param1" />  
<button>fire!</button>
<hr>
<p> Output </p>
<textarea></textarea>

When I clicked the fire button, the output will be showed in the <textarea> element. I shall be the three parameters that I input.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.