I found that using a new instance of the sh shell will capture system death messages for the process, such as Segmentation Defect and Killed.
sh -c 'php pcre-bug.php' >/dev/null 2>&1
However, the input arguments do not apply to php, but rather to the sh instance, which does nothing with them.
ThorSummoner Sep 01 '15 at 10:45 2015-09-01 22:45
source share