Jump to content

Help with a script to monitor a log file for changes in real time


maddogrsf
 Share

Recommended Posts

hi everyone . Learning more and more of autoit and i have to say it is VERY powerful. now im into a small automation project

 

Here is what i plan :  i want , using while/ wend to monitor a log file of an application and when there is a line added i need that auto it " exports" that line

i need this for  an automation of my ftp server. it checks sfv files and when an upload is " COMPLETE "  the ftp server logs it . i need that when there is written this log entry to extract it and run unrar is some regex parameters are met. the hard part is the real time monitoring

 

at the moment  my code is very unsuccessful (if required i can paste it here)

plus after 40 sec of run time i usually get an out of memory error

 

can you please me show some effective ways of to monitor a file and extract  last written line (guess using  readline -1) in real time ?

 

thx and regards

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...