LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-06-2012, 12:53 PM   #1
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,318

Rep: Reputation: 124Reputation: 124
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.
 
  


Reply


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


All times are GMT -5. The time now is 03:58 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration