The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 10-27-2008
h3llh0l3 h3llh0l3 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 9
Thanks for the reply danmero.

I had tried that earlier. When the script reads thru somelog.log and reaches EOF it exits. But I don't want it to exit. If the EOF is reached the script should wait till new line is added to somelog.log and then perform the task. Also the new to somelog.log would be added at random intervals.

Any suggestions on how to have the script wait where it stopped rather than exiting and continue when the new line is added?

Thanks.