Filesys::Notify::Simple(3pm) User Contributed Perl Documentation Filesys::Notify::Simple(3pm)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.
o There is no file name based filter. Do it in your own code.
o You can not get types of events (created, updated, deleted).
o 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.12.4 2011-09-27 Filesys::Notify::Simple(3pm)
Check Out this Related Man Page
Authen::Simple(3pm) User Contributed Perl Documentation Authen::Simple(3pm)NAME
Authen::Simple - Simple Authentication
SYNOPSIS
use Authen::Simple;
use Authen::Simple::Kerberos;
use Authen::Simple::SMB;
my $simple = Authen::Simple->new(
Authen::Simple::Kerberos->new( realm => 'REALM.COMPANY.COM' ),
Authen::Simple::SMB->new( domain => 'DOMAIN', pdc => 'PDC' )
);
if ( $simple->authenticate( $username, $password ) ) {
# successfull authentication
}
DESCRIPTION
Simple and consistent framework for authentication.
METHODS
o new
This method takes an array of "Authen::Simple" adapters. Required.
o authenticate( $username, $password )
Returns true on success and false on failure.
SEE ALSO
Authen::Simple::ActiveDirectory.
Authen::Simple::CDBI.
Authen::Simple::DBI.
Authen::Simple::FTP.
Authen::Simple::HTTP.
Authen::Simple::Kerberos.
Authen::Simple::LDAP.
Authen::Simple::NIS.
Authen::Simple::PAM.
Authen::Simple::Passwd.
Authen::Simple::POP3.
Authen::Simple::RADIUS.
Authen::Simple::SMB.
Authen::Simple::SMTP.
Authen::Simple::SSH.
AUTHOR
Christian Hansen "chansen@cpan.org"
COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-04-19 Authen::Simple(3pm)
I have installed Windows and Linux on the same machine but now it starts with windows all the time i need to get in and install Lilo but i don't know how i can get access to my Linux system, i have created an boot disk but it tries to start the installation all the time, i need to boot so i can get... (3 Replies)
Simple Q here.
What GOOD telnet programs are out there for MAC.
I use this one that can't utilize the VI editor.
I don't know why.
Thankx for your help in advance.
/D (8 Replies)
Hi,
A bit of a dumb question here. Sorry folks.
Suppose I have this file which is being updated at irregular intervals (a few seconds, a few minutes, who knows) by a background process.
I 'vi' this file with the intention of editing it, so it opens up a temp copy as the usual... (8 Replies)
Hello,
I am trying to create a file watcher script to check for a file until certain time and throw a message. can some one please help me if there is script handy ??
Thanks,
Sateesh (1 Reply)
My file watcher is scheduled to look for a File ABC.XYZ.
Ideally when it find this file present in the directory it is looking in should end :b:, but this file watcher is wasting 6-9 minutes each day :eek:
i am unable to understand why this file watcher is behaving in freakish manner...:confused: (1 Reply)
Hi All,
I am failry new to Perl.I am trying to install a Perl module (Filesys::df.pm) in an IBM AIX5.3 server.But I could not succeed in that.I am getting the following error:
abcd3dev# make
cc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias... (6 Replies)
Hi HP-UX users. If you can help with the following I would be grateful. I am starting off on my HP-UX learning/certification path and need to acquire an HP-UX machine. I would prefer HP hardware, ie. PA-RISC and see that there are many for sale on eBay, etc., and was hoping someone on this forum... (2 Replies)
#!/usr/bin/perl
use strict;
use warnings;
use Filesys::DiskSpace;
# file system to monitor
my $dir = "/opt";
# warning level
my $warning_level=10;
# email setup
my $to='mail@mail.com';
my $subject='Low Disk Space';
# get df
my ($fs_type, $fs_desc, $used, $avail, $fused,... (1 Reply)
Hi Guys,
I hope anyone can help me on how to create a watcher-script. The script will act as watcher wherein whenever it will find an error (say the word Error) in a file, it will prompt the user.
Please help!
br,
rymnd_12345 (3 Replies)
Hi friends,
Instead of creating a script autosys 11.3 has a feature for filewatcher.
Can anyone please share a link where ican create a file watcher job (more like manual).
i need to create a filewatcher job where the job should search for a file for every 5 mins
and send a mail whether the... (1 Reply)
1. The problem statement, all variables and given/known data:
An argument example:
../path/cse/lab3/remove
Right now, it's printing out all the directory and files in 'lab3'.
I want it to print out all the files in 'remove'.
I'm not sure how to do that. (I want to use a for loop)
2.... (2 Replies)
Hi,
I have a requirement wherein i need to have a generic file watcher in place.
On presence of a file in a particular directory,the file watcher should identify the related config file and execute the series of the shell scripts mentioned in the config file.
eg.Config file
a.sh
b.sh... (7 Replies)
The attachment says it all really...
It is a DEMO at a glance digital readout using the "date" command to make it useful...
For a Mocbook Pro 13", OSX 10.7.5, but may well work on Linux variants too.
Enjoy...
#!/bin/bash
#
# Clock.sh
# A bash DEMO to create a 6 x 7 character set... (4 Replies)
Hi,
I'm looking for a Perl module which can recursively list remote Windows shares from within a Linux machine.
I've tried Filesys::SmbClient ans Filesys:SmbClientPars but they just list the current directory
Thank You for your help (4 Replies)