BARRAUX Arthur
2 years ago
8 changed files with 17 additions and 9 deletions
@ -1,5 +1,6 @@ |
|||
<?php |
|||
$light = $_POST["light"]; |
|||
$output = shell_exec('bash ../scripts/led.sh '+$light); |
|||
echo $output |
|||
$output = null; |
|||
exec('bash ../scripts/led.sh '.$light, $output); |
|||
var_dump($output); |
|||
?> |
@ -1,4 +1,4 @@ |
|||
<?php |
|||
$output = shell_exec('bash ../scripts/temp.sh'); |
|||
$output = shell_exec('bash ../scripts/get_temp.sh'); |
|||
echo $output |
|||
?> |
@ -0,0 +1 @@ |
|||
0 |
@ -0,0 +1,5 @@ |
|||
<?php |
|||
$out = null; |
|||
exec("scripts/get_temp.sh", $out); |
|||
var_dump($out); |
|||
?> |
@ -0,0 +1 @@ |
|||
0 |
Loading…
Reference in new issue