LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-23-2015, 11:28 AM   #1
Weapon S
Member
 
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 262
Blog Entries: 2

Rep: Reputation: 49
inotifywait doesn't catch a modify, but does register a attrib change


First time working with inotifywait from inotify-tools. I wanted to detect when XFCE changes the display configuration:
Code:
inotifywait -qq -e modify ~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml
The line above waits indefinitely though, even when I can confirm the file has changed. Running without specifying "-qq -e modify" works, but prints ATTRIB. Apparently on the grounds of catching an attribute change i.e. the modification date it can detect a change.
Is this expected, and do I not understand the program? Or is it some quirk in my setup, like my file systems (NTFS)?
 
Old 05-23-2015, 05:13 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
You're using NTFS on a Linux system? Or is the home directory perhaps on a Windows system and mounted via CIFS/SMB?
 
Old 05-23-2015, 11:54 PM   #3
Weapon S
Member
 
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 262

Original Poster
Blog Entries: 2

Rep: Reputation: 49
I should have explained. It is a "temporary" workaround for a PEBCAK issue. Home is on a Windows readable partition. All my ext partitions are mounted with noatime. I have no idea whether that is relevant, so I thought it would be best to limit the problem to the specific case, and ask for general information.
The inotify manual says the underlying system doesn't track changes made using mmap an msync instead of read and write. Will look into this.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to have 2 'exclude' in inotifywait pingu Linux - Software 0 06-06-2012 11:53 AM
Using wicd on Slackware 12.2 doesn't register host name with DNS server lord_beavis Linux - Networking 4 10-19-2009 12:45 PM
Hardware conflict - need to change value of sound card register Krelian Linux - Hardware 1 06-23-2006 12:17 AM
Snort doesn't seem to catch anything I throw at it? Pcghost Linux - Security 2 04-28-2004 03:54 PM
RH 8.0 don't let me change attrib by chmod command explorer1979 Linux - General 2 10-27-2002 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration