script uses "cgrep" command
I wrote a script that have a following command:
tail -f 070928.APX | cgrep -E "AC FAILURE ALARM|LOW VOLTAGE ALARM"
The command didn't run.But when I use the only command:
tail -f 070928.APX | grep "AC FAILURE ALARM" or
tail -f 070928.APX | grep "LOW VOLTAGE ALARM"
Two above commands ran.
What happended ? Did the problem happend to "tail" or "cgrep" command ?
And after finishing the script, how to end the "tail" process.
Please help me to solve this.
Thanks
|