if pgrep apache; then echo "oliver"; fi
This will echo oliver if the command pgrep apache is not empty. I want to do the reverse. If the the command pgrep apache returns an empty string, run a command.
if pgrep apache; then echo oliver; fi This will echo oliver if the command
Share
1 Answer