I'm trying to terminate a shell script using PHP code.
I have created a shell script foo.sh which calls a PHP file
#! /bin/bash
cd /var/www/html/test
php test.php
Following is test.php
<?php
exec('exit 0');
?>
For some reason the shell script is not exiting.
test.phptake a long time to run?