LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-30-2008, 10:11 AM   #1
beeblequix
Member
 
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 198

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, 11:49 AM   #2
Poetics
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:46 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
Open Source Consulting | Domain Registration