tail -f and then exit on matching string
- by Patrick
I am trying to configure a startup script which will startup tomcat, monitor the catalina.out for the string "Server startup", and then run another process.
I have been trying various combinations of tail -f with grep and awk, but haven't got anything working yet. The main issue I am having seems to be with forcing the tail to die after grep or…