It looks like you are using it through some system () in some language, right? Try:
grep '\" 503 ' access.log
or
grep "\" 503 " access.log
Directly in the shell, just grep '" 503 ' access.log will work. To reproduce your problem, I have to do:
bash -c 'grep '\" 503 ' access.log'
This is really a syntax error. To do this work, I need:
bash -c 'grep "\" 503 " access.log'
You somehow call bash -c ... Maybe indirectly. You need to find out what it's called to find out which quotes are in conflict.
source share