79098113

Date: 2024-10-17 12:42:54
Score: 0.5
Natty:
Report link

I see this question is old but this addresses the problem in a clean way too without the need to use the -l flag although the -l flag exist for that exact same reason:

sqlplus test/Test@mydatabase @script.sql | grep -q 'ERROR' && echo "ERROR CONNECTING" || echo "SUCCESS"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: pacomix