in reply to Timed event within a script
Perhaps you could use alarm (but see this for portability issues) to trigger a $SIG{ ALRM } callback that sends the "I'm alive" message.
Update: Corrected mis-matched brackets in text.
Cheers,
JohnGG