FAM_MONITOR_COLLECTION(3) 1 FAM_MONITOR_COLLECTION(3)fam_monitor_collection - Monitor a collection of files in a directory for changesSYNOPSIS
resource fam_monitor_collection (resource $fam, string $dirname, int $depth, string $mask)
DESCRIPTION
Requests monitoring for a collection of files within a directory.
A FAM event will be generated whenever the status of the files change. The possible event codes are described in detail in the constants
part of this section.
PARAMETERS
o $fam
- A resource representing a connection to the FAM service returned by fam_open(3)
o $dirname
- Directory path to the monitored files
o $depth
- The maximum search $depth starting from this directory
o $mask
- A shell pattern $mask restricting the file names to look for
RETURN VALUES
Returns a monitoring resource or FALSE on errors.
SEE ALSO fam_monitor_file(3), fam_monitor_directory(3), fam_cancel_monitor(3), fam_suspend_monitor(3), fam_resume_monitor(3).
PHP Documentation Group FAM_MONITOR_COLLECTION(3)
Check Out this Related Man Page
FAMD(8) SGI FAMD(8)NAME
famd - The File Alteration Monitor (FAM) daemon
SYNOPSIS
famd [-CdflLv] [-C conffile] [-p prog.vers] [-t period] [-T timeout]
DESCRIPTION
FAM, the File Alteration Monitor, is a subsystem that applications can use to be notified when specific files or directories are changed.
It is intended as a replacement for mechanisms such as poll and select.
FAM comes in two parts: famd, the daemon that listens for requests and provides notifications, and libfam a library that client applica-
tions can use to communicate with FAM. For further information on libfam, see the fam(3) manual page.
famd is normally started by an Internet superserver such as inetd or xinetd, but can also be started independently. Only one instance of
famd can be run at a time.
famd can be configured by editing the famd configuration file (see fam.conf(5) for further details) or by providing the following command
line options:
OPTIONS -c conffile
Read configuration information from conffile.
-C Run in backwards compatibilty mode. This is disables authentication and is not recommended.
-f Run in the foreground.
-v Enable verbose messages.
-d Enable verbose messages and debug messages.
-l Disable polling of files on remote NFS servers.
-L Only accept connections from local clients.
-r Detect read-only filesystems.
-p prog.vers
Register with the portmapper using the specifed RPC program and version numbers.
-P port
Bind to the specified TCP port instead of choosing at random.
-t period
Poll a remove NFS server every period seconds to obtain file updates if the remove server is not running famd.
-T timeout
Exit timeout seconds after the last client disconnects. A value of 0 causes famd to run forever.
SECURITY
famd never opens the files it's monitoring, and only monitors files that the client can stat.
FILES
/etc/fam.conf
Default famd configuration file.
SEE ALSO fam(3), fam.conf(5), inetd(8), portmap(8), stat(1), xinetd(8)BUGS famd (fam 2.6.10) January 19, 2003 FAMD(8)
Something very weird has been happening when I'm creating files and directories. When I create a directory, at times depending on the directory name and depth, it becomes hidden and can only be seen typing "ls -a". When I say the name of the directory matters, "my_c++" will be hidden but using... (10 Replies)
hi
i am having four files in a directory.like
1)sampleRej
2)exampleRej
3)samplemain
4)examplemain
my requirement is i have to search for the rejected files (sampleRej,exampleRej) in a directory.if these files in that directory then i have to delete the main files... (3 Replies)
i am new here and i am a new user of unix.my problem is :
i want to find all the names of files under the directory /etc/and at any depth that contains the letters 'st'.how i can do it with using
a)ls
b)find
for (a) i am thinking something like ls -R|grep *st* but is wrong
any ideas... (3 Replies)
Hi,
I am trying to write a script that will search in a particular directory and tell me how many files are in there. I then want to be able to email certain users of how many files are in that directory and what the file names are?
any help would be great as i am getting confused.
thanks (3 Replies)
Hi All,
I would like to look for all the files in a directory (and subdirectory) NOT containging a given string (the string is "LOST 100 100").
Any idea how to proceed?
Thanks a lot,
Gino (9 Replies)
Hi all,
I need UNIX command that would give me all files without the string "4R" anywhere in the file. I have about a hundred files in my directory, and I need to list all files wihtout the string "4R" anywhere. Can anyone help me please? Thank you.l (4 Replies)
Hi
as output i get a directory (i don't know its name) with many files inside.
Now i need to find the directory name and change it as i need.
I can found a directory name with this command:
find -maxdepth 1 -type d | grep out
Now i'd like to assign it to a variable and change it. ... (4 Replies)
Hello Friends,
I've been trying to write a script which finds a string and change it with another string. For this i want to search all files (with its arguments) under a spesific directory and its subdirectories.
For example lets assume i want to replace an IP= 192.168.0.4 with another... (4 Replies)
Hi Guys,
I want to search the content of all the files (of a particular type like .txt)
in a directory for a specific string pattern. Can anyone help me?
Thanks (7 Replies)
Dear all,
Need a quick help/suggestion on monitoring a particular directory .
We have a deployment directory say (/users/integration/deploy ) under this there are several files which can be edited by a number of users -
We need to write a script which will check this deployment directory... (5 Replies)
Hi!
In our current directory there are around 35000 files.
Out of these a few thousands(around 20000) start with, "testfiles9842323879838".
I want to count the number of files that have filenames starting with the above pattern. Please help me with the command i could use.
Thank... (7 Replies)
Hi Everyone,
I am looking for a simple way for replacing all the files under a directory that use the server "xsgd1234dap" with "xsdr3423pap".
For Example:
In the Directory,
$pwd
/home/nick
$ grep -l "xsgd1234dap" *.sh | wc -l
119
I have "119" files that are still using... (5 Replies)
Dear friends,
I have a hundred or so videos I keep in a directory, but as the collection has grown anarchically in the past years I have at least 3 different situations:
a) one directory for each video and within it the video and any other accompaining files (mostly text files with my notes and... (5 Replies)
I'm trying to grab a list of file names from a directory, then process those files 5 at a time. In the link below. Instead of using files I'm using the files array which contains 15 strings starting with AAA.
So I'm trying to assign $fileset 5 of the strings at a time to pass to a command. So... (4 Replies)
I would like to list all the .c and .h files in the current directory or any of its subdirectories.
I tried ls -R *.c *.h or ls -R | *.c *.h but that doesn't work.
A related question : how to copy all the .c and .h files in the current directory or any of its subdirectories into another... (3 Replies)