In the process of learning shell scripting I've tinkered together the
following simple script:
if [ "ps ax | grep [m]ysql -c" -eq 0 ]
if ["ps ax | grep [m]ysql -c" -eq 0 ]
When I run the script I receive the error ""integer expected before -eq" and
I'm not sure what's causing it.
if [ "ps ax | grep [m]ysql -c" -eq "0" ]
to see if it was a data type mismatch, but without success.
Any pointers much appreciated.