Filesys::Notify::Simple man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

Filesys::Notify::SimplUser Contributed Perl DocumentFilesys::Notify::Simple(3)

NAME
       Filesys::Notify::Simple - Simple and dumb file system watcher

SYNOPSIS
	 use Filesys::Notify::Simple;

	 my $watcher = Filesys::Notify::Simple->new([ "." ]);
	 $watcher->wait(sub {
	     for my $event (@_) {
		 $event->{path} # full path of the file updated
	     }
	 });

DESCRIPTION
       Filesys::Notify::Simple is a simple but unified interface to get
       notifications of changes to a given filesystem path. It utilizes
       inotify2 on Linux and fsevents on OS X if they're installed, with a
       fallback to the full directory scan if they're not available.

       There are some limitations in this module. If you don't like it, use
       File::ChangeNotify.

       ·   There is no file name based filter. Do it in your own code.

       ·   You can not get types of events (created, updated, deleted).

       ·   Currently "wait" method blocks.

       In return, this module doesn't depend on any non-core modules. Platform
       specific optimizations with Linux::Inotify2 and Mac::FSEvents are
       truely optional.

AUTHOR
       Tatsuhiko Miyagawa <miyagawa@bulknews.net>

LICENSE
       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

SEE ALSO
       File::ChangeNotify Mac::FSEvents Linux::Inotify2

perl v5.18.2			  2011-01-13	    Filesys::Notify::Simple(3)
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net