On Fri, Aug 09, 2002 at 04:22:45PM -0500, Najamuddin, Junaid wrote: > Thanks in advance, if someone can help me out > I am trying to read the last 10 lines of a log file. If the script finds a > word ERROR it should email and log the event. If not then do nothing. > Some how the other first part is working > If it finds the word ERROR it does what needs to be done but when it do > not find the word it doesn't do anything > I am about to pull my hair. > > Can some one help me please
You are only incrementing $cnt in one branch of the if statement. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]