![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| script running with "ksh" dumping core but not with "sh" | simhe02 | HP-UX | 9 | 11-04-2008 08:52 PM |
| Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" | Lokesha | UNIX for Dummies Questions & Answers | 4 | 12-20-2007 01:52 AM |
| Perl - immitate perpetual "tail" | jjinno | Shell Programming and Scripting | 4 | 08-23-2007 12:42 AM |
| Listing only directories in the current working directory using the "ls" command | igandu | UNIX for Dummies Questions & Answers | 2 | 05-12-2006 05:47 AM |
| pf not working properly even with only "pass in all" and "pass out all" rules | xyyz | UNIX for Advanced & Expert Users | 4 | 12-30-2003 05:33 AM |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Hi Everyone ,
I am facing a strange problem i have made the follwing script to watch a appending log file (abc.log) but its not moving after the line tail -f , any suggestions ===================================== #!/bin/bash while true do tail -f abc.log | grep "exceptions" echo hi done =================================== but the script keeps on giving the exceptions output as follows: exception.TaxStrategyException: Error during port.getTax exception.InterfaceException: Error MNP duplicate found exception.CardPaymentException: Payment gateway rejected and i want the out put to be as follows :------ exception.TaxStrategyException: Error during port.getTax hi exception.InterfaceException: Error MNP duplicate found hi exception.CardPaymentException: Payment gateway rejected hi ================================================ the basic problem i have seen is that tail -f keeps on checking the appending log file due to which it doesnot ends up and the second command echo hi never gets executed. Please help me if there is any other way of doing this Thanks ![]() ![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|