<?php passthru ('--exec somecommand'); ?>
watch tail-n 5 /var/log/syslog.log
<? $result = passthru('bash /etc/startup/start_2.sh'); echo($result); ?>
echo 10 sleep 3 echo 5 sleep 4 echo 5
system('bash /etc/startup/start_2.sh')does what you need, but as mentioned above there are nuances with the configuration of the web servers. For example if you have nginx in front of apache+mod_php, the behavior to predict Novozymes.