HOW TO USE C-R-O-N?????

Kirk Strauser kirk at strauser.com
Sat Sep 13 08:03:35 PDT 2003


At 2003-09-13T11:09:12Z, Denis <intraden at mail.ru> writes:

> Does anybody can show me how i can use Cron???  For example, I want to
> start: /usr/bin/perl /usr/scripts/my.pl every 30 seconds. Can i to do it?

You really don't want to do it that way.  You probably want to wrap your
script with something like:

use Time::HiRes qw( sleep );

    while (1)
    {

        ... rest of your program ...

        sleep .5;
    }

-- 
Kirk Strauser

"94 outdated ports on the box,
 94 outdated ports.
 Portupgrade one, an hour 'til done,
 82 outdated ports on the box."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030913/d5a5511d/attachment.bin


More information about the freebsd-questions mailing list