search for: inotifywait

Displaying 20 results from an estimated 37 matches for "inotifywait".

2019 Apr 25
2
Questions/suggestions about new staged installation
Hi, I was playing around with inotifywait (great tool!) to see the new staged installation of source packages in action. In one terminal I'm monitoring the create/delete/move events of the installation library with: ? inotifywait -m --timefmt '%F %T' --format '%T -- %w %e %f' -e create -e delete -e move path/to/R/l...
2019 Apr 25
1
Questions/suggestions about new staged installation
On 4/25/19 04:57, Tomas Kalibera wrote: > On 4/25/19 3:11 AM, Pages, Herve wrote: >> Hi, >> >> I was playing around with inotifywait (great tool!) to see the new >> staged installation of source packages in action. In one terminal I'm >> monitoring the create/delete/move events of the installation library >> with: >> >> ? ? inotifywait -m --timefmt '%F %T' --format '%T -- %w %e %f...
2019 Apr 25
0
Questions/suggestions about new staged installation
On 4/25/19 3:11 AM, Pages, Herve wrote: > Hi, > > I was playing around with inotifywait (great tool!) to see the new > staged installation of source packages in action. In one terminal I'm > monitoring the create/delete/move events of the installation library with: > > ? inotifywait -m --timefmt '%F %T' --format '%T -- %w %e %f' -e create > -e dele...
2007 Nov 07
0
smbd always opens files for writing?
Hi, I have two Linux machines sharing a directory using Samba. I am monitoring file changes on the shared directory (server-side) with inotifywait(1). When I open a shared file for reading (and reading only) on the client, the Samba server appears to open it for writing as well. e.g. directory on client: /mnt/share directory on server: /export/share client$ cat /mnt/share/file.txt >/dev/null server: inotifywait: /export/share/ (CLOSE_W...
2015 Oct 28
1
Strange problem with MS Office while saving
Hi all, I sometime have a strange behavior when using MS Office and saving files. First things first: - OS CentOS 6.7 x86_64 - SAMBA version 3.6.23, configured as member server (see [1] for full configuration) - inotifywait watching my shares to replicate them off-site - about 100 W7/W8 clients with MS Office 2010 Using inotifywait, I tracked how MS Office file save function works. Basically, when clicking on the "diskette" icon, Office do the following thing: - create a temporary file with the new conten...
2015 Apr 12
0
`asterisk -x reload` does not working in `while` expression.
Hello, Reload extensions.conf works well both in CLI and excute `asterisk -x reload` in shell. But it does not working with `while` expression. I use fish shell but it also does not working in bash. ``` while inotifywait -e MOVE_SELF /etc/asterisk/extensions.conf asterisk -x 'help core reload' asterisk -x 'core reload' asterisk -x 'dialplan reload' asterisk -x 'module reload' asterisk -x 'config reload extensions.conf' sle...
2016 May 19
1
Ransomware?
...n a samba share that everyone has access to. If I modify them in any way, I get warned. I was thinking it might warn me so I could prevent it spreading to backups. #!/bin/sh $MY_EMAIL="some at email.com" $MY_DIR=/home/shared_to_everyone_via_samba/pictures_for_test_sub_folder while inotifywait -qre modify "$MY_DIR"; do #play a sound on server play -v .3 /home/warning.wav #send an email mail -s "Possible malware" $MY_EMAIL </home/warning.txt done
2015 Sep 27
1
modify message with doveadm?
Hello, I'm using dovecot with getmail and spamassassin. To re-learn false detected mails I created two folders and use an external script that checks the corresponding maildir directories for changes (with inotifywait). The mails found in these directories are passed to sa-learn (to re-learn the correct classification) and then moved back to the inbox or the spam folder. To access the mail I use "doveadm search" (to find all mails in the two folders), "doveadm fetch" (to get the text and pas...
2013 Jul 24
1
dbus support in dovecot?
...etchmail driving mailfilter as a pre-check, procmail as the MTA delivering to /var/spool/mail/me, with clamav and spamd in the mix to intercept and send to /dev/null the worst of the spam, or to a quarantine file if clamav triggers. The current transfer mechanism is driven by a script that uses inotifywait to detect newly delivered mail in that directory, and which then sends kmail a dbus message to go get the mail. Since I want to insert dovecot into this chain, does dovecot have a dbus port, and if so, what is the format of the command it expects? Thanks all. Cheers, Gene -- "There are...
2016 Oct 23
1
Guest startup process blocks if a hook's child process is still running (i.e : after forking)
...until systemd-inhibit quits. Here's the script : LOCK_FILE="/tmp/vfio-lock-$OBJECT" if [ "$OPERATION" == "start" ]; then ( touch "$LOCK_FILE"; systemd-inhibit --what="sleep" \ --who="libvirt" \ --mode="block" \ inotifywait -qq -e delete "$LOCK_FILE" ) & disown $! exit fi if [ "$OPERATION" == "shutdown" ]; then rm "$LOCK_FILE" fi Is there some way to make it so libvirt sees the hook script exiting and carries on with the rest of its guest startup process even a...
2018 Jul 20
2
Continued Group Policy issues
...another enhancement ;-) Find the sample script below. We add other DCs as needed to the same script. To include, "net cache flush", we will have to modify this script that runs on first DC or (DC1 or PDC ;-) #!/bin/sh DIR="/usr/local/samba/var/locks/sysvol/test.com/Policies/" inotifywait -m -r -e moved_to -e modify -e delete -e create "$DIR" | while read f do     echo $f     if [[ $f = *.* ]]; then { export PATH=/usr/local/samba/bin:/usr/local/samba/sbin:$PATH samba-tool ntacl sysvolreset &> /dev/null sleep 5 rsync -XAavz --delete-after /usr/local/samba/var/lock...
2014 Jul 02
1
recording in mp3
...hen timeout=300 else timeout=5 fi read -t $timeout event if [ $? != 0 ] ; then action=0 /data/soundchaser/periodic else if [[ $event =~ ".wav" || $event =~ ".gotit" ]] ; then action=1 fi fi done } cd /data/soundchaser inotifywait -m /data/soundchaser/public_html/done | processevents
2015 Jul 02
2
cut-off time for rsync ?
You could use find to build a filter to use with rsync, then update the filter every few days if it takes too long to create. I have used a script to build a filter on the source server to exclude anything over 5 days old, invoked when the sync starts, but it only parses around 2000 files per run. Mark. On 2/07/2015 2:34 a.m., Ken Chase wrote: > What is taking time, scanning inodes on
2016 Apr 21
1
Cannot Run On The Command Line
On Thu, 21 Apr 2016 08:23:32 +0000 Martyn Plummer <plummerm at iarc.fr> wrote: > From: Martyn Plummer <plummerm at iarc.fr> > To: "cireyapmin at gmail.com" <cireyapmin at gmail.com>, > "r-sig-fedora at r-project.org" <r-sig-fedora at r-project.org> Subject: > Re: [R-sig-Fedora] Cannot Run On The Command Line Date: Thu, 21 Apr > 2016
2015 Jul 13
3
rsync --link-dest and --files-from lead by a "change list" from some file system audit tool (Was: Re: cut-off time for rsync ?)
On Mon, 13 Jul 2015 02:19:23 +0000, Andrew Gideon wrote: > Look at tools like inotifywait, auditd, or kfsmd to see what's easily > available to you and what best fits your needs. > > [Though I'd also be surprised if nobody has fed audit information into > rsync before; your need doesn't seem all that unusual given ever-growing > disk storage.] I wanted to ta...
2008 Nov 12
9
file monitoring in samba
Does anyone know how can I monitor files that was being open and access in the samba directory? If this was not possible, is there third party apps that can help me do what I want? -- Nelson Serafica http://nelsontux.blogspot.com
2017 Sep 12
1
Dovecot and Letsencrypt certs
On Tue, 12 Sep 2017, dovecot-request at dovecot.org wrote: > What's wrong with using a certbot "post-hook" script such as: > > #!/bin/bash > echo "Letsencrypt renewal hook running..." > echo "RENEWED_DOMAINS=$RENEWED_DOMAINS" > echo "RENEWED_LINEAGE=$RENEWED_LINEAGE" > > if grep --quiet "your.email.domain" <<<
2018 Jul 20
0
Continued Group Policy issues
...he sample script below. We add other DCs as needed to the same > script. To include, "net cache flush", we will have to modify this > script that runs on first DC or (DC1 or PDC ;-) > > #!/bin/sh > DIR="/usr/local/samba/var/locks/sysvol/test.com/Policies/" > inotifywait -m -r -e moved_to -e modify -e delete -e create "$DIR" | > while read f > do >     echo $f >     if [[ $f = *.* ]]; then > { > export PATH=/usr/local/samba/bin:/usr/local/samba/sbin:$PATH > samba-tool ntacl sysvolreset &> /dev/null > sleep 5 > rsync -X...
2015 Jul 13
0
cut-off time for rsync ?
...o do something of that sort, you might want instead to consider truly tracking changes. This catches operations that find will miss, such as deletes, renames, copies preserving timestamp ("cp - p ..."), and probably other operations not coming to mind at the moment. Look at tools like inotifywait, auditd, or kfsmd to see what's easily available to you and what best fits your needs. [Though I'd also be surprised if nobody has fed audit information into rsync before; your need doesn't seem all that unusual given ever-growing disk storage.] In addition to catching operations t...
2009 May 01
2
Inotify or equivalent
I installed inotify and incrond to watch a directory and set the job as '/mnt/dir IN_ATTRIB chmod 0660 $@/$#' which worked very well except that as expected, IN_ATTRIB is to broad of a watch class as it caused an enormous amount of contention with the filemonitor and/or db server and the client side app was less than happy. Not to mention top showed it working away like mad... Is there