Linux::Inotify2 1.01
Sponsored Links
Linux::Inotify2 1.01 Ranking & Summary
File size:
0.009 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1150
Date added:
2006-09-06
Publisher:
Marc Lehmann
Linux::Inotify2 1.01 description
Linux::Inotify2 is a scalable directory/file change notification.
SYNOPSIS
Callback interface
use Linux::Inotify2;
# create a new object
my $inotify = new Linux::Inotify2
or die "Unable to create new inotify object: $!";
# for Event:
Event->io (fd =>$inotify->fileno, poll => r, cb => sub { $inotify->poll });
# for Glib:
add_watch Glib::IO $inotify->fileno, in => sub { $inotify->poll };
# manually:
1 while $inotify->poll;
# add watchers
$inotify->watch ("/etc/passwd", IN_ACCESS, sub {
my $e = shift;
my $name = $e->fullname;
print "$name was accessedn" if $e->IN_ACCESS;
print "$name is no longer mountedn" if $e->IN_UNMOUNT;
print "$name is gonen" if $e->IN_IGNORED;
print "events for $name have been lostn" if $e->IN_Q_OVERFLOW;
# cancel this watcher: remove no further events
$e->w->cancel;
});
Streaming Interface
use Linux::Inotify2 ;
# create a new object
my $inotify = new Linux::Inotify2
or die "Unable to create new inotify object: $!" ;
# create watch
$inotify->watch ("/etc/passwd", IN_ACCESS)
or die "watch creation failed" ;
while () {
my @events = $inotify->read;
unless (@events > 0) {
print "read error: $!";
last ;
}
printf "maskt%dn", $_->mask foreach @events ;
}
This module implements an interface to the Linux 2.6.13 and later Inotify file/directory change notification sytem.
It has a number of advantages over the Linux::Inotify module:
- it is portable (Linux::Inotify only works on x86)
- the equivalent of fullname works correctly
- it is better documented
- it has callback-style interface, which is better suited for
integration.
SYNOPSIS
Callback interface
use Linux::Inotify2;
# create a new object
my $inotify = new Linux::Inotify2
or die "Unable to create new inotify object: $!";
# for Event:
Event->io (fd =>$inotify->fileno, poll => r, cb => sub { $inotify->poll });
# for Glib:
add_watch Glib::IO $inotify->fileno, in => sub { $inotify->poll };
# manually:
1 while $inotify->poll;
# add watchers
$inotify->watch ("/etc/passwd", IN_ACCESS, sub {
my $e = shift;
my $name = $e->fullname;
print "$name was accessedn" if $e->IN_ACCESS;
print "$name is no longer mountedn" if $e->IN_UNMOUNT;
print "$name is gonen" if $e->IN_IGNORED;
print "events for $name have been lostn" if $e->IN_Q_OVERFLOW;
# cancel this watcher: remove no further events
$e->w->cancel;
});
Streaming Interface
use Linux::Inotify2 ;
# create a new object
my $inotify = new Linux::Inotify2
or die "Unable to create new inotify object: $!" ;
# create watch
$inotify->watch ("/etc/passwd", IN_ACCESS)
or die "watch creation failed" ;
while () {
my @events = $inotify->read;
unless (@events > 0) {
print "read error: $!";
last ;
}
printf "maskt%dn", $_->mask foreach @events ;
}
This module implements an interface to the Linux 2.6.13 and later Inotify file/directory change notification sytem.
It has a number of advantages over the Linux::Inotify module:
- it is portable (Linux::Inotify only works on x86)
- the equivalent of fullname works correctly
- it is better documented
- it has callback-style interface, which is better suited for
integration.
Linux::Inotify2 1.01 Screenshot
Linux::Inotify2 1.01 Keywords
Inotify2 1.01
ACCESS
change notification
E-
new
name
notification
watch
Inotify
Linux::Inotify2
LinuxInotify2
Linux::Inotify2 1.01
Libraries
Programming
Bookmark Linux::Inotify2 1.01
Linux::Inotify2 1.01 Copyright
WareSeeker periodically updates pricing and software information of Linux::Inotify2 1.01 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Linux::Inotify2 1.01 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
address change notification
change notification oracle
email change notification
change notification active directory
name change notification
product change notification
change notification settings
engineering change notification
change notification ringtone g1
unable to disable media change notification
change notifications on blackberry curve
future change notification
web page change notification
process change notification
website change notification
watches
notification systems
email notification
Related Software
python-inotify project is a Python interface to the inotify file notification system present in Linux 2.6. Free Download
lupengo project is a classic arcade game. Free Download
Linux distribution race is a cool car race for 4 players. Free Download
Libckpt is a portable checkpointing tool for Unix. Free Download
inotify-cxx program is the inotify C++ interface. Free Download
Gain access to NTFS partitions under Linux Free Download
MURIX Linux is a distribution based on LinuxFromScratch for building bootable CD-ROMs. Free Download
Trinacria Linux is a new Italian distribution based on KNOPPIX. Free Download
Latest Software
Popular Software
Favourite Software