php exec bash command code example
Example 1: exec output php
$output = exec('ls');
Example 2: php exec at ubuntu
exec('echo "php /path/to/script.php" | at 09:00am Jul 15')
$output = exec('ls');
exec('echo "php /path/to/script.php" | at 09:00am Jul 15')