Date: Sat, 13 Sep 2003 10:03:26 -0500 From: Kirk Strauser <kirk@strauser.com> To: freebsd-questions@freebsd.org Subject: Re: HOW TO USE C-R-O-N????? Message-ID: <87oexon329.fsf@strauser.com> In-Reply-To: <1544264640.20030913150912@mail.ru> (intraden@mail.ru's message of "Sat, 13 Sep 2003 15:09:12 %2B0400") References: <1544264640.20030913150912@mail.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-= Content-Transfer-Encoding: quoted-printable At 2003-09-13T11:09:12Z, Denis <intraden@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; } =2D-=20 Kirk Strauser "94 outdated ports on the box, 94 outdated ports. Portupgrade one, an hour 'til done, 82 outdated ports on the box." --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQA/YzHB5sRg+Y0CpvERAjDfAJ9pxG5EwIyEkm3P8/NchEzg784lqQCfdMev XPogPEj6OtzK98oq7NuCbWI= =POSQ -----END PGP SIGNATURE----- --=-=-=--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87oexon329.fsf>