Re: [fpc-pascal] Watching for file change

2014-04-14 Thread Graeme Geldenhuys
On 2014-04-12 20:16, Henry Vermaak wrote: No, the linux solution isn't distro dependent, since it's in the kernel. inotify came in 2005-ish to deprecate dnotify, but even dnotify still OK, but does FCL include a cross-platform API that covers all platforms? When I looked at this before (1.5

Re: [fpc-pascal] Watching for file change

2014-04-14 Thread Michael Schnell
On 04/11/2014 09:53 PM, Henry Vermaak wrote: You can use the inotify* functions in linux unit. See the man pages or Wikipedia for how they work. inotify is nice because - like anything in Linux - it is just a file. Of course it would be nice if the rtl would provide an arch independent

Re: [fpc-pascal] Watching for file change

2014-04-14 Thread Michael Van Canneyt
On Sun, 13 Apr 2014, Graeme Geldenhuys wrote: On 2014-04-12 20:16, Henry Vermaak wrote: No, the linux solution isn't distro dependent, since it's in the kernel. inotify came in 2005-ish to deprecate dnotify, but even dnotify still OK, but does FCL include a cross-platform API that covers

Re: [fpc-pascal] Watching for file change

2014-04-14 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 04/11/2014 09:53 PM, Henry Vermaak wrote: You can use the inotify* functions in linux unit. See the man pages or Wikipedia for how they work. inotify is nice because - like anything in Linux - it is just a file. Like most anything. In particular, named network

Re: [fpc-pascal] Watching for file change

2014-04-12 Thread Graeme Geldenhuys
On 2014-04-11 20:06, Krzysztof wrote: idea how to do this in thread loop but maybe FPC has OS solution As the others have said, the OS solutions are very version/distro dependent - especially under Linux which changes underlying functionality every 6 months or so (so damn annoying). A

Re: [fpc-pascal] Watching for file change

2014-04-12 Thread Henry Vermaak
On Sat, Apr 12, 2014 at 12:32:14AM +0100, Graeme Geldenhuys wrote: On 2014-04-11 20:06, Krzysztof wrote: idea how to do this in thread loop but maybe FPC has OS solution As the others have said, the OS solutions are very version/distro dependent - especially under Linux which changes

Re: [fpc-pascal] Watching for file change

2014-04-12 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On Sat, Apr 12, 2014 at 12:32:14AM +0100, Graeme Geldenhuys wrote: On 2014-04-11 20:06, Krzysztof wrote: idea how to do this in thread loop but maybe FPC has OS solution As the others have said, the OS solutions are very version/distro dependent - especially under Linux

Re: [fpc-pascal] Watching for file change

2014-04-12 Thread Henry Vermaak
On Sat, Apr 12, 2014 at 08:08:20PM +, Mark Morgan Lloyd wrote: Henry Vermaak wrote: On Sat, Apr 12, 2014 at 12:32:14AM +0100, Graeme Geldenhuys wrote: On 2014-04-11 20:06, Krzysztof wrote: idea how to do this in thread loop but maybe FPC has OS solution As the others have said, the OS

[fpc-pascal] Watching for file change

2014-04-11 Thread Krzysztof
Hi, Does FPC have some file watching solution? I need this only for linux. I need notifications: - File/folder changed / removed / added in watched directory. I have idea how to do this in thread loop but maybe FPC has OS solution Regards ___

Re: [fpc-pascal] Watching for file change

2014-04-11 Thread waldo kitty
On 4/11/2014 3:06 PM, Krzysztof wrote: Hi, Does FPC have some file watching solution? I need this only for linux. I need notifications: - File/folder changed / removed / added in watched directory. I have idea how to do this in thread loop but maybe FPC has OS solution i'm interested in this,

Re: [fpc-pascal] Watching for file change

2014-04-11 Thread Henry Vermaak
On 11 Apr 2014 20:07, Krzysztof dib...@wp.pl wrote: Hi, Does FPC have some file watching solution? I need this only for linux. I need notifications: - File/folder changed / removed / added in watched directory. I have idea how to do this in thread loop but maybe FPC has OS solution You can

Re: [fpc-pascal] Watching for file change

2014-04-11 Thread Mark Morgan Lloyd
waldo kitty wrote: On 4/11/2014 3:06 PM, Krzysztof wrote: Hi, Does FPC have some file watching solution? I need this only for linux. I need notifications: - File/folder changed / removed / added in watched directory. I have idea how to do this in thread loop but maybe FPC has OS solution i'm

Re: [fpc-pascal] Watching for file change

2014-04-11 Thread silvioprog
See: http://www.freepascal.org/~michael/articles/dirwatch/dirwatch.pdf -- Silvio Clécio My public projects - github.com/silvioprog ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Watching for file change

2014-04-11 Thread silvioprog
2014-04-11 17:40 GMT-03:00 silvioprog silviop...@gmail.com: See: http://www.freepascal.org/~michael/articles/dirwatch/dirwatch.pdf With sources and demos: http://www.freepascal.org/~michael/articles/ -- Silvio Clécio My public projects - github.com/silvioprog

Re: [fpc-pascal] Watching for file change

2014-04-11 Thread Henry Vermaak
On 11 Apr 2014 21:39, Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: waldo kitty wrote: On 4/11/2014 3:06 PM, Krzysztof wrote: Hi, Does FPC have some file watching solution? I need this only for linux. I need notifications: - File/folder changed / removed / added in watched

Re: [fpc-pascal] Watching for file change

2014-04-11 Thread Krzysztof
Thanks to all for tips. They are very helpfull. I'll test it, wait for feedback :) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal