How to run a Bash script via PHP and match the output?
How to run a Bash script via PHP and match the output?
You do it with exec ie:
$exec = exec('/bin/sh /bin/scripts/myscript.sh ' , $output, $return);
and you can see the output with:
var_dump($output);
|
Bookmarks