<?php $light = $_GET["light"]; $output = null; exec('bash ../scripts/get_light.sh '.$light, $output); var_dump($output); ?>