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

Chris Craft ccraft at netgenius.org
Sat Sep 13 08:55:02 PDT 2003


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 every
> 30 seconds.  I don't know of a way to go less than 1 minute.
>
> Jerry
> ----- Original Message -----
> From: "Jerry Bell" <jerry at syslog.org>
> To: "Denis" <intraden at mail.ru>; <freebsd-questions at 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 at mail.ru>
> To: <freebsd-questions at 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?


More information about the freebsd-questions mailing list