if [ $status req 5]; then Should read: if [ $status -eq 5 ]; then The 'req' is not a valid Numeric relational operator. plus there is a Space missing after the '5', before the Closing ']'.
if [ $status req 5]; then Should read:
if [ $status -eq 5 ]; then
The 'req' is not a valid Numeric relational operator. plus there is a Space missing after the '5', before the Closing ']'.