[Gambas-user] monitor file for changes

lasse at ...186... lasse at ...186...
Mon Sep 6 14:14:46 CEST 2004


Hi,

Ohh, cool,

I had no idea in the world that it would that simple !

Thanks alot,

Regards,


On Monday 06 September 2004 13:34, Benoit Minisini wrote:
> 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,




More information about the User mailing list