Horje
monitor log file for string Code Example
monitor log file for string
tail -fn0 logfile | \
while read line ; do
        echo "$line" | grep "pattern"
        if [ $? = 0 ]
        then
                ... do something ...
        fi
done




Shell

Related
when-i-start-ubuntu-it-enters-tty1-6-instead-of-my-desktop-how-do-i-get-to-de/65234#65234 Code Example when-i-start-ubuntu-it-enters-tty1-6-instead-of-my-desktop-how-do-i-get-to-de/65234#65234 Code Example
install brew linux mint Code Example install brew linux mint Code Example
assign contents of file to variable bash Code Example assign contents of file to variable bash Code Example
update token key github Code Example update token key github Code Example
SearchMonkey For Linux Code Example SearchMonkey For Linux Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11