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
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
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* Randal L. Schwartz [2003-07-21 13:21]:
> 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 i
> "Darren" == Darren Chamberlain <[EMAIL PROTECTED]> writes:
Darren> * Randal L. Schwartz [2003-07-21 13:21]:
>> 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::