[Gambas-user] monitor file for changes

Benoit Minisini gambas at ...1...
Mon Sep 6 13:34:18 CEST 2004


On Monday 06 September 2004 13:17, lasse at ...186... wrote:
> Hi,
>
> I know about using "tail -f", but i want to do this using Gambas and
> display is with a GUI frontend and then possibly do some alerting and
> filtering on the contents which is why i wanted to do it using gambas !
>
> Any way of doing it with Gambas. I've been trying to fool around with EOF
> functionality but without much luck.
>
> Regards,
>
> Lasse
>

What is the problem with using "tail -f" to monitor a file, and display the 
result in a GUI made in Gambas ???

DIM hProcess AS Process

EXEC [ "tail", "-f", MyFile ] FOR READ AS hProcess

...

PUBLIC SUB Process_Read()

  DIM sLig AS String

  LINE INPUT #LAST, sLig

  ...

END

Or something like that.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list