On 8/8/07, Toddy Prawiraharjo <[EMAIL PROTECTED]> wrote: > Hi all, > > I wrote a simple perl script to check some variables in SHOW STATUS in a > mysql server. Now, how do I run it as a service/daemon? > I want more flexibility than crontab which is based on time. Should I use > sleep? Or is there any other alternative? Thanks in advance. > > > Cheers, > > Toddy Prawi
Search CPAN for Daemon, but it basically comes down to forking once or twice, closing STDIN and STDOUT, doing some other house keeping, and then running a loop with a sleep. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/