![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| monitoring cpu | csross | SUN Solaris | 1 | 03-23-2007 08:30 PM |
| Monitoring | magasem | AIX | 1 | 11-06-2006 05:27 AM |
| DB2 Monitoring | sprellari | AIX | 0 | 05-30-2006 10:57 AM |
| Bandwidth Monitoring. | d11wtq | UNIX for Dummies Questions & Answers | 2 | 06-14-2005 11:42 PM |
| DNS monitoring, how to | littleghost | IP Networking | 0 | 05-29-2004 12:52 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi there,
I have an application runnig on HP_UX which logs critical mesages to a log file. What I would like to do is tail the log file and report on new messages. Easy....I here you say. The log file is continuing to be written to and the check scritp will be executed from cron. I was thinking on having a file with the last wc -l stored in it and then having a variable that is the current wc -l of the log file. How could I subtract the original wc from the stored wc to use in the tail -x? these would be only the new messages. (orig wc) - (new wc) = tail -n lines Do you know what I mean? From these new lines I will report and audit.. Cheers in advance all you lucky people. ![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|