Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exit status from php in shell script

Status
Not open for further replies.

barryp

Programmer
Jan 30, 2002
48
GB
I use

if `php -q mystuff.php`

within a shellscript run from crontab

How can I pass an error status from within my PHP to the shell script ?

If I say exit(-1); within PHP I do not see this in my shellscript.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top