<?php $output = shell_exec('sh /usr/local/hadoop-3.0.2/copytoallhdfs.sh'); echo "<pre>" . $output . "</pre>";