- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Catch automatically new files in a particular ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2009 05:11 AM
тАО03-25-2009 05:11 AM
Catch automatically new files in a particular folder
I've another small affair.
How to catch any new core file in my folder /wrk/files ?
I'd like to trigger actions when core file is coming. Of course I can do this we a crontab and check if a new file is arrived from the last check but the problem is that in a minute many core will arrived and the risk is to missed some files ! The last core file is always overwriten and I want to have all files. So I need first to rename the file...
Any Idea ?
Bests Regards
Den
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2009 06:05 AM
тАО03-25-2009 06:05 AM
Re: Catch automatically new files in a particular folder
http://en.wikipedia.org/wiki/Versioning_file_system
Another very more complex option is to enable auditing. After an event for that file is detected, use swatch to trigger an action.
But remember, keep it simple and it will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2009 08:51 AM
тАО03-25-2009 08:51 AM
Re: Catch automatically new files in a particular folder
I never use for this task but maybe you could implement rsync daemon with some configuration tasks like backup for renaming your core file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2009 02:03 AM
тАО03-26-2009 02:03 AM
Re: Catch automatically new files in a particular folder
You could have a look at incron, which is a kind of cron but based on file system event and not time event.
http://inotify.aiken.cz/?section=incron&page=aboutтМй=en
Cheers
Thierry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 06:02 PM
тАО03-27-2009 06:02 PM
Re: Catch automatically new files in a particular folder
Shouldn't you be trying to find why you have so many?
If linux had coreadm, you could have them moved elsewhere and with unique names.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 09:28 PM
тАО03-27-2009 09:28 PM
Re: Catch automatically new files in a particular folder
Not sure if a pre-written tool is available for which alllows you to directly specify directory names to monitor on command line.
You may have to write C program using these APIs
Thanks
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2009 01:39 AM
тАО03-28-2009 01:39 AM
Re: Catch automatically new files in a particular folder
not really an answer to your question, but I agree with Dennis: solve the problem or have it solved.
Why is it so important not to miss a single core file?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2009 01:44 AM
тАО03-28-2009 01:44 AM
Re: Catch automatically new files in a particular folder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2009 01:45 AM
тАО03-29-2009 01:45 AM
Re: Catch automatically new files in a particular folder
that's a nice, easy solution of Srikrishan.
JP