Welcome to the most active Linux Forum on the web.
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 01-30-2008, 11:11 AM   #1
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 196

Rep: Reputation: 30
Event based task scheduler?

Howdy folks,

I use cron all the time to automate tasks such as running statistics and creating reports. I find that there are other things I need to automate which are based on an event. Example, there's a flat file I'd like to monitor for changes, and when it detects a change it sends those changes off elsewhere. I want to say that I've seen something like cron or anacron before that's event based but don't remember much more than that. Does anyone know Is there an event based task scheduler in the linux world? Or even in the Win2k/XPP world (that's actually where I need it but also need to know the linux side too). Thoughts? Thanks.

Old 01-30-2008, 12:49 PM   #2
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
If you think about it, even event-based schedulers have to have some timing mechanism to run checks. You could very easily set up a perl (or even bash) script to check a given file for changes and email you said changes at a given interval, say every five minutes.

Currently I have something similar to this set up, for use in checking whether a particular server has had any ports opened or closed recently. I have a flat file with the results of the last nmap scan. I hold the new results in memory, and test against the old. If there are changes, replace the old with the new and email me a 'diff' output. That way you get a running log of what changes have been made, on a case-by-case basis.

Hopefully that will give you some ideas.


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
LXer: Defining Scheduler Task Groups LXer Syndicated Linux News 0 09-12-2007 05:12 AM
Task Scheduler FC4, KDE lowebb Linux - Software 7 02-21-2006 06:19 PM
Windows captions are not highlighted on the task bar when an event occurs galois82 Linux - Newbie 2 12-20-2005 03:03 PM
More accurate task scheduler lowspeed Linux - General 7 02-17-2005 09:21 PM
task scheduler? is there any? bruno buys Linux - General 1 11-17-2003 04:09 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:35 AM.

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