Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Sep 2003 09:54:52 -0600
From:      Chris Craft <ccraft@netgenius.org>
To:        "Jerry Bell" <jerry@syslog.org>, "Denis" <intraden@mail.ru>, <freebsd-questions@freebsd.org>
Subject:   Re: HOW TO USE C-R-O-N?????
Message-ID:  <20030913155501.4DF7F1CC448@mamacass.springsips.com>
In-Reply-To: <022c01c379ee$e6874d30$1a0a0a0a@iss.net>
References:  <1544264640.20030913150912@mail.ru> <01ca01c379ea$d2e13ab0$1a0a0a0a@iss.net> <022c01c379ee$e6874d30$1a0a0a0a@iss.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Here's how I run scripts every 30 seconds from crontab:

* * * * * /path/to/somescript
* * * * * sleep 30; /path/to/somescript

Cheers,
Chris.


On Saturday 13 September 2003 06:02, Jerry Bell wrote:
> As has been pointed out, this will make it run every 2 minutes, not eve=
ry
> 30 seconds.  I don't know of a way to go less than 1 minute.
>
> Jerry
> ----- Original Message -----
> From: "Jerry Bell" <jerry@syslog.org>
> To: "Denis" <intraden@mail.ru>; <freebsd-questions@freebsd.org>
> Sent: Saturday, September 13, 2003 7:33 AM
> Subject: Re: HOW TO USE C-R-O-N?????
>
>
> crontab -e
> then put in
> */2    *    *    *    *     /usr/bin/perl /usr/scripts/my.pl
>
> save and it should be good to go.
>
> Jerry
> http://www.syslog.org
> ----- Original Message -----
> From: "Denis" <intraden@mail.ru>
> To: <freebsd-questions@freebsd.org>
> Sent: Saturday, September 13, 2003 7:09 AM
> Subject: HOW TO USE C-R-O-N?????
>
> Hi All!!!
>
>   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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030913155501.4DF7F1CC448>