in reply to how do i create a daemon ??

check out daemontools package. TIMTOWTDI.

--
Tatsuhiko Miyagawa
miyagawa@cpan.org