I have initiated an inotify process with --fromfile option and the file contain the paths to be monitored.
The file /usr/local/maldetect/sess/inotify.paths.28364 contain entries such as below.
There are almost 800 entries like this. What I need is, when a new user is created, the path /home/user4/public_html, should add the path dynamically to the existing inotify process without needing to re-initate the inotify process. As the initialization of inotify process is a bit resource hogging. Or anyway by which, if we add the path /home/user4/public_html to the file /usr/local/maldetect/sess/inotify.paths.28364, the inotify process will dynamically read it.
Hi there!
People, i'm a new unix user, and i'm having some problems...
I'm updating some scripts (korn shell) in different servers. I use telnet to access these servers and emacs to write the scripts. One of them is an HP, and there´s no problem. But the other one is an AIX, and when i call... (1 Reply)
There is a program that I am trying to run on a shell account. It depends on another program, which I have also copied to the shell account. Both are in my home directory, yet the first program has a different path hardcoded into it, which I cannot use because of permissions problems.
How can I... (3 Replies)
Hi all,
I downloaded a tarball of coreutils ....
extracted only to find out that i had to build it...
But when i executed ./configure, this is what i got
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
configure: autobuild project... GNU... (2 Replies)
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)
I've read through a couple of forum posts on Career issues but wanted to get some feedback that may be more personalized and whatnot.
I am brand new to the world of UNIX and Linux and while I am finding the learning curve rather steep, I find it highly rewarding and am overall enjoying the... (2 Replies)
Hello,
I need help to add a # dynamically to a .txt file that contain files location
I called the file listing.txt
Dir1/Dir2/file_name
Here is what I am trying to do.
I am using a short shell ksh script on solaris. I am using a loop to read this log file line by... (3 Replies)
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)
Dear members, moderators and others.
While working on <insert project>, a need has surfaced to watch a directory, and when a file comes, to do appropriate action.
So, i started writing some shell code, aware of linux inotify-tools package with inotifywait.
Also, i'm seeing a lot of similar... (1 Reply)
Discussion started by: Peasant
1 Replies
LEARN ABOUT HPUX
inotify_rm_watch
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)