I’ve already read this and it didn’t satisfy my test case.
Say I’ve
servername-server
servername
servername_new_bak
Say servername and servername_new_bak aren’t running.
When I do ps -aux| grep servername | wc -l I want only 1 as output as servername is not running, but currently I’m getting 3 as output because servername-server is running.