Originally Posted by Habitual
Good point. I was a little unsure myself as he said:
I really should pay more attention or ask for more exacting information.
But it's a "we" thing, not a "me" thing.
I retried again updating the script, I sampled the deployments directory has 3 ear files with .failed deployments.
I got this results:
./script.sh: line 3: [: /tmp/deployments/app01.ear.failed: binary operator expected
the script now is:
if [ -e /tmp/pg_pid.txt ] && [ -e /tmp/jboss7_pid.txt ] && ! [ ls /tmp/*.failed ] && grep -Fqi "TIMEOUT" "$log_file"; then
echo "NOT OK!"