Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-06-2012, 11:53 AM   #1
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Need to have 2 'exclude' in inotifywait

This is on a sftp-server, I need to watch a directory recursively and take action when a file is uploaded. I use inotifywait for this.
Problem in short: I need to have 2 exclude-patterns.

A little more explanation:
I want to exclude all files with extension .dl_complete, no problem there's an '--exclude' option that works fine.
Now I also want to exclude everything under one directory ("Utbox"), so I added another '--exclude' which simply did not work.
So, after having spent many many hours trying to figure out how to, I stumbled across this:
Document that only one --exclude flag is supported
Aha, who could have guessed!
So next try was to create a file with path to search and files/direcories to exclude.
That didn't work either.

Any ideas how I can exclude both all files named *.dl_complete AND everything under directory Utbox?
This is on OpenSuse 12.1, but tried in other distro's as well.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Using Find with an exclude/exclude file metallica1973 Linux - General 8 11-06-2011 09:39 PM
Can we use exclude option in"rm" command to exclude some files/folders? yadav_rk727 Linux - Newbie 1 02-03-2010 10:14 AM
CVS Exclude : Exclude sub directories from check out On Linux from command line shajay12 Linux - Newbie 1 08-03-2009 12:36 AM
tar --exclude --exclude-from cefn Linux - Software 4 10-11-2005 07:31 PM

All times are GMT -5. The time now is 11:16 PM.

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