I have this code to prompt for text input and then I want to run script.sh:
Is it possible to substitute x above as the value for $txt in script.sh which looks like this below and how please?
var x=prompt("Enter text:");
//this is where I'm lost
var xmlhttp=new XMLHttpRequest();
echo "Content-type: text/html"
<some xmlrpc command> "add text $txt"