Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fam_monitor_directory(3) [php man page]

FAM_MONITOR_DIRECTORY(3)						 1						  FAM_MONITOR_DIRECTORY(3)

fam_monitor_directory - Monitor a directory for changes

SYNOPSIS
resource fam_monitor_directory (resource $fam, string $dirname) DESCRIPTION
Requests monitoring for a directory and all contained files. A FAM event will be generated whenever the status of the directory (i.e. the result of function stat(3) on that directory) or its content (i.e. the results of readdir(3)) changes. 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 - Path to the monitored directory RETURN VALUES
Returns a monitoring resource or FALSE on errors. SEE ALSO
fam_monitor_file(3), fam_monitor_collection(3), fam_cancel_monitor(3), fam_suspend_monitor(3), fam_resume_monitor(3). PHP Documentation Group FAM_MONITOR_DIRECTORY(3)

Check Out this Related Man Page

libgamin-1(3)							C Library Functions						     libgamin-1(3)

NAME
libgamin-1 - library interfaces to detect when a file or a directory has been modified DESCRIPTION
libgamin-1 is compatible with FAM 2.6.8 and allows to detect when a file or a directory has been modified. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgamin | +-----------------------------+-----------------------------+ |Interface stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
gam_server(1), attributes(5) Developers want to monitor the changes of a file may use the interfaces exported by FAM project http://oss.sgi.com/projects/fam and link the application to libgamin-1. For the detail information of FAM interfaces refer to http://oss.sgi.com/projects/fam/doc.html. Gamin Homepage: http://www.gnome.org/~veillard/gamin NOTES
Written by Lin Ma, Sun Microsystems Inc., 2008. SunOS 5.11 25 Mar 2008 libgamin-1(3)
Man Page

11 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

unix return codes

Suppose I have a script which is monitoring a directory whenever a file drops in that directory,it sends alert say I want to write a return code for the above script which on successful execution of script gives a return value Based on return code , I want to do initiate some jobs in other... (1 Reply)
Discussion started by: abhib45
1 Replies

2. UNIX for Dummies Questions & Answers

Distinction b/w file system and directory

Can you give a very basic definition of file system vs. directory in unix. The context is around monitoring for disk capacity maxing out. Why would /appl/sbe/inst_2/config/logs not be able to be because it is a directory but appl/cce can be monitored because it is a unix file system. They... (1 Reply)
Discussion started by: kd9626
1 Replies

3. Shell Programming and Scripting

monitoring dirs

Hi there, Presently using du -ks and storing all directory summaries manually. Is there any other way or easier way to accomplish monitoring directories and check everyday/week for updates on particular dirs that I am interested in. Automation of this functionality maybe? (1 Reply)
Discussion started by: da-seot
1 Replies

4. Shell Programming and Scripting

balancing and monitoring

hi all, I want to know some details about "automated balancing and auditing controlling mechanism". Balancing and monitoring the data, like looking into the log files and number of successful rows inserted and rejected something like that. And some books if u could suggest. Here is an example,... (0 Replies)
Discussion started by: mercuryshipzz
0 Replies

5. UNIX for Dummies Questions & Answers

monitoring a directory for changes

hi i need to monitor a directory for changes .. when ever a file is modified or created newly then the name of the file along with the user id and the ip address of the person who has created the file or modified it should be logged into a user specific file... (3 Replies)
Discussion started by: sais
3 Replies

6. Shell Programming and Scripting

[bash] Manipulate dir name

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)
Discussion started by: Dedalus
4 Replies

7. Shell Programming and Scripting

Help with Compare and search content in directory

Hello, How to search in directory by comparing some string with the content of directory. Ex: I want to compare abhi string with the content of backup directory. i.e want to check that is there any file in backup directory having name ... (3 Replies)
Discussion started by: AbhijitIT
3 Replies

8. Shell Programming and Scripting

Finding the list of users who modified a file

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)
Discussion started by: jambesh
5 Replies

9. Shell Programming and Scripting

How to list the content of a directory

Hi I want to write a script that reads a directory name, checks if the directory exists and lists the content of that directory. That's what I have at the moment. function listDirectory { echo "Give in a directory name" read name #Here I want to check if the... (4 Replies)
Discussion started by: hss
4 Replies

10. UNIX for Dummies Questions & Answers

Realtime monitoring of files in a directory

Hello Experts, Here are my requirements. I want to monitor a directory and retrieve file properties like file names along with file sizes of files being generated today and that exceeds a threshold limit (say 10MB) using a shell script. Basically this shell script should monitor (kinda... (1 Reply)
Discussion started by: RamanM
1 Replies

11. AIX

System monitoring with RMC/RSCT

Hi all, is any of you using RMC for monitoring your LPARs? Is it viable? I know the IBM Magazine article and the Redbooks about it but I would like to hear from first hand. Thanks in advance for sharing your experience! (7 Replies)
Discussion started by: zaxxon
7 Replies