Thanks.. Sorry if I haven't explained my problem cleary. I'm not that good in English. Anyway, I think I have found a solution. What i did was to create a script that runs all of my perl utility programs like signup daemon, change password daemon and timeout daemon. The main - daemon iterates every 2 seconds.. and executes
ps -ax and then. save the output into an array. Read the array for any process name that corresponds to the filename of my utility daemons. If a utility daemon is not running due to the possiblity of errors terminating it abnormally, the main-daemon re-runs the script in background. 🙂 My utility - daemons also make sure that there is no running instance of the same.
in a way, the cron executes my main-daemon
and my main-daemon executes my utility daemons...