Hey I am trying to watch a file being written to pipe it into grep looking for a string and kill a process on that string. this is what I am doing:
tail -f some.file | grep ERROR | kill #PID
but it kills the process right away. Any ideas or need more from me?
Miah
tail -f some.file | grep ERROR | kill #PID
but it kills the process right away. Any ideas or need more from me?
Miah