Sys::GaminSys::Gamin is a Perl interface to Gamin (File Access Monitor implementation). | |
Download |
Sys::Gamin Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- J. Glick
- Publisher web site:
- http://search.cpan.org/~garnacho/Sys-Gamin-0.1/lib/Sys/Gamin.pm
Sys::Gamin Tags
Sys::Gamin Description
Sys::Gamin is a Perl interface to Gamin (File Access Monitor implementation). Sys::Gamin is a Perl interface to Gamin (File Access Monitor implementation).SYNOPSIS use Sys::Gamin; my $fm=new Sys::Gamin; $fm->monitor('/foo'); $fm->monitor('/foo/bar.txt'); while (1) { my $event=$fm->next_event; # Blocks print "Pathname: ", $event->filename, " Event: ", $event->type, "n"; }Asynchronous mode: while ($fm->pending) { my $event=$fm->next_event; # Immediate ... } # Do something elseProvides a somewhat higher-level and friendlier interface to the Gamin File Access Monitor API. This allows one to monitor both local and remote (NFS-mounted) files and directories for common filesystem events. To do so, you must register "monitors" on specified pathnames and wait for events to arrive pertaining to them.Since FAM only deals with absolute pathnames, all paths are canonicalized internally and monitors are held on canonical paths. Whenever a path is returned from this module, howvever, via which or monitored with no arguments, the originally specified path is given for convenience. Requirements: · Perl
Sys::Gamin Related Software