Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このようないくつかの PHP スクリプトを呼び出す bash シェル スクリプトがあります。
#!/bin/bash php -f somescript.php php -f anotherscript.php
これらのスクリプトの結果に基づいて、エラー ログやアクティビティ レポートを作成したいと考えています。
シェルスクリプトでphpスクリプトの終了ステータスを取得する方法はありますか?
整数の終了ステータスまたは文字列メッセージのいずれかを使用できます。