I have a bash shell script that calls a few PHP scripts like this.
#!/bin/bash
php -f somescript.php
php -f anotherscript.php
I want to compose an error log and/or an activity report based on the results of those scripts.
Is there any way I can get the exit status of the php script in the shell script?
I could either use integer exit statuses or string messages.