Need to monitor a log file for a particular string "Server running at http". Once that string is found in the log file , I need to stop checking and want to continue to rest of the code.
currently I am currently using "tail -f my-file.log | grep -q "Server running at http" . But this doesn't seem to work.tail command is still running.
tail -f my-file.log | grep -q "Server running at http"