INOTIFY_RM_WATCH(2) Linux Programmer's Manual INOTIFY_RM_WATCH(2)NAME
inotify_rm_watch - remove an existing watch from an inotify instance
SYNOPSIS
#include <sys/inotify.h>
int inotify_rm_watch(int fd, int wd);
DESCRIPTION
inotify_rm_watch() removes the watch associated with the watch descriptor wd from the inotify instance associated with the file descriptor
fd.
Removing a watch causes an IN_IGNORED event to be generated for this watch descriptor. (See inotify(7).)
RETURN VALUE
On success, inotify_rm_watch() returns zero. On error, -1 is returned and errno is set to indicate the cause of the error.
ERRORS
EBADF fd is not a valid file descriptor.
EINVAL The watch descriptor wd is not valid; or fd is not an inotify file descriptor.
VERSIONS
Inotify was merged into the 2.6.13 Linux kernel.
CONFORMING TO
This system call is Linux-specific.
SEE ALSO inotify_add_watch(2), inotify_init(2), inotify(7)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
Linux 2017-09-15 INOTIFY_RM_WATCH(2)
Check Out this Related Man Page
INOTIFY_RM_WATCH(2) Linux Programmer's Manual INOTIFY_RM_WATCH(2)NAME
inotify_rm_watch - remove an existing watch from an inotify instance
SYNOPSIS
#include <sys/inotify.h>
int inotify_rm_watch(int fd, int wd);
DESCRIPTION
inotify_rm_watch() removes the watch associated with the watch descriptor wd from the inotify instance associated with the file descriptor
fd.
Removing a watch causes an IN_IGNORED event to be generated for this watch descriptor. (See inotify(7).)
RETURN VALUE
On success, inotify_rm_watch() returns zero. On error, -1 is returned and errno is set to indicate the cause of the error.
ERRORS
EBADF fd is not a valid file descriptor.
EINVAL The watch descriptor wd is not valid; or fd is not an inotify file descriptor.
VERSIONS
Inotify was merged into the 2.6.13 Linux kernel.
CONFORMING TO
This system call is Linux-specific.
SEE ALSO inotify_add_watch(2), inotify_init(2), inotify(7)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
Linux 2017-09-15 INOTIFY_RM_WATCH(2)
please help
in some times
"watch dog reinit memory", and system hang
SCO UNIX version 3.2.5.0
Compac Proliant ML 370
pentium 3 750
512 MB memory
9g and 18g scsi u/f/w Disc
65 user running informix
Thanx (1 Reply)
On Linux I could use the `watch` command to loop a command X times. Is there a similar command on AIX? If not, is there a way to write a loop on the command line to do this?
Linux: watch -d -n 60 'db2 list applications show detail | grep Connect | wc -l'
AIX: ??? (2 Replies)
I'm rusty with unix admin, and I was just informed by a peer in another city that I need to watch my unix log files for size, but she never told me which ones to watch - and of course, now she's gone for two weeks! I am using Sco OpenServer 5.5 (I believe), can anyone tip me off on the trouble log... (3 Replies)
Hi,
Please help me out!
In the man pages they dont talk about any options that can be used to terminate a running 'watch' command. Do you know a way of terminating the command using an option?
Thanks (1 Reply)
Hi
I'm going to write a program in C language to watch activity on file system
in SCO UNIX openserver 5.0.6.
Apparently Linux provide an API called "inotify" , I'm wondering what's the SCO UNIX package for this ? (1 Reply)
Hi all,
How can I do a ksh script to watch a log file for 2 specific alarms that have one this string : "Connection Error" and the other one: "Failure in sending". I would like to watch for these two alarms in the log and then if each of them repeats for about 30 times to go kill 2 processes.
... (1 Reply)
I can not understand why this little script with a loop processes only one file.
At boot in /etc/rc.local i wrote:
/usr/local/bin/./myscript &
This is myscript:
#!/bin/bash
while inotifywait -e create /HOTFOLDER/ ; do
for fullname in /HOTFOLDER/*.xlsx; do
if !... (22 Replies)
I wish to install inotify-tools-3.20.1-2.4.x86_64.rpm on Linux and fire inotifywait command.
Initially i was looking for "inotify-tools-3.xx.tar.gz" as instructed here http://jensd.be/248/linux/use-inotify-tools-on-centos-7-or-rhel-7-to-watch-files-and-directories-for-events
I have... (9 Replies)