I am writing a php interface in which the input is passed to an ant target which is working fine, however, what I would like is for the output of the ant build process to be displayed in my browser. What I am doing now is the following
<?php
    if (isset($cleaned)){
        echo "<div class='output'>";
        echo "<p>'".$cleaned."'</p>";
        echo "</div>";
        $arg1 = escapeshellarg($cleaned);
        echo exec("sudo scripts/set_vars.sh $arg1");
     }
?>
But it just returns the last line of the process. I want to see the entire process much like the console output in Jenkins.
Help would be appreciated
