- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Scripting query... Monitoring a directories conten...
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
Forums
Discussions
Discussions
Discussions
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
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
05-09-2004 09:48 PM
05-09-2004 09:48 PM
Scripting query... Monitoring a directories contents.
In the past I've used a periodic cron process that checks the directory every 1min or so... but my question is, is there a better way of doing this?
Cheers
Russ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2004 09:51 PM
05-09-2004 09:51 PM
Re: Scripting query... Monitoring a directories contents.
You have tools like tripwire that van do that for you.
check:
http://www.tripwire.org/
those tools do not consume that much CPU time.
Regards,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2004 10:33 PM
05-09-2004 10:33 PM
Re: Scripting query... Monitoring a directories contents.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2004 10:48 PM
05-09-2004 10:48 PM
Re: Scripting query... Monitoring a directories contents.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2004 10:55 PM
05-09-2004 10:55 PM
Re: Scripting query... Monitoring a directories contents.
Can the machine that is ftping to you either rexec/ssh the receiving machine to kick of a process. Maybe it can mail an account and you get "procmail" to start off the processing.
One thing that probably doesn't work but might be fun to try is to pre-create the files as named pipes and have a process read the named pipes. Of course you would need to know what the file names are going to be and you need to persuade ftp to not break a named pipe when it transfers a file to it. However, if it works, it means no unnecessary load and I like that :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 05:02 AM
05-10-2004 05:02 AM
Re: Scripting query... Monitoring a directories contents.
What would "better" entail?
The only thing you could change apart from checking every 1 minute via cron would be to check every few seconds with some sort of daemon script:
#!/usr/bin/ksh
while true
do
if [[ -a ${file} ]]
then
process_file
fi
sleep 10
done
This script would run as a process until someone killed it. It would check more frequently.