My initial thought would be simply to have a series of test programs to verify 
everything that you
need.  Then set up a cron job and just run 'em through Test::Harness and pipe the 
output to your
favorite mail program.

  perl -MTest::Harness -e 'runtests(glob "/path/to/tests/*.t")'  2>&1 | mail [EMAIL 
PROTECTED]

I don't think much special work would need to be done.  I've heard that Test::Cmd 
works pretty
well.  I was reading that just a few days ago, but I can't remember where I read that 
(grr ...)

Cheers,
Ovid

--- "Randal L. Schwartz" <[EMAIL PROTECTED]> wrote:
> 
> It occurs to me that that if I wanted to build a health check
> watchdog for my system (a script that executes at regular intervals
> to ensure proper operation), that the Test::* mechanisms would
> be pretty ideal for checking the results and reporting the proper
> errors.
> 
> I can't be treading new ground here.  Has anyone done this already
> and could pass along pointers, or better yet, working code?
> 
> [Aside - is Test::Cmd considered current tech?  It hasn't been updated
> in two years... is there a better way?]
> 
> Thanks.
> 
> -- 
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


=====
Hire me!                   http://users.easystreet.com/ovid/personal/resume.html
Silence is Evil            http://users.easystreet.com/ovid/philosophy/indexdecency.htm
Ovid                       http://www.perlmonks.org/index.pl?node_id=17000
Web Programming with Perl  http://users.easystreet.com/ovid/cgi_course/

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

Reply via email to