Search Results

Search: Posts Made By: maddy26615
1,581
Posted By MadeInGermany
2nd argument of grep is a file name. Either ...
2nd argument of grep is a file name.
Either
printf "%s\n" "$rec" | grep -q "INFO"or replace it by a case statement
case $rec in
*INFO*) echo "$rec" | /usr/bin/mailx -s "Error `date`"...
1,581
Posted By jim mcnamara
tail -f will wait for lines to be added to a...
tail -f

will wait for lines to be added to a file.


#!/bin/ksh
cd /path/to/logs # change to YOUR path to default .log
tail -f default.log | while read rec # loop forever
do
...
7,176
Posted By DGPickett
It seems like a fair error. However, you are...
It seems like a fair error. However, you are working too hard. Make /opt/web/http.py executable, make the first line "#!/usr/bin/python", put /opt/web in $PATH and just say "nohup http.py &" Make...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy