I have this:
<?php
if ($_GET['run']) {
# This code will run if ?run=true is set.
exec("./check_sample.sh");
}
?
<!-- This link will add ?run=true to your URL, myfilename.php?run=true -->
<button type="button" onclick="?run=true">Click Me!</button>
The shell script check_sample.sh has some o/p which it prints using printf/echo When I click 'Click Me' I don't see those o/p. Also anypointer on how to make it take a text input and pass it as $1 arg. to script will also help