Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 2010 12:42:18 +0400
From:      Jeff Laine <wtf.jlaine@gmail.com>
To:        Mark Stapper <stark@mapper.nl>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: how to run task periodically
Message-ID:  <4C6B9CEA.5070603@gmail.com>
In-Reply-To: <4C6B847A.5090408@mapper.nl>
References:  <4C6B847A.5090408@mapper.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08/18/2010 10:58, Mark Stapper wrote:
>   Hi,
>
> I have a system that doesn't run 24/7/365.
> I would like to make sure that some tasks (like updating the ports tree)
> run weekly/monthly etc.
> As the system isn't on 24/7 the cron job I usually run for these tasks
> doesn't work as the machine isn't always running on the scheduled time.
>
> So I need a utility that enable me to say: "if a week has passed since
> the last run, run this command".
> Is there such a utlility?
> Cheers,
> Mark
>

Maybe @reboot action of standard crontab will suit your needs.
Also it wouldn't be that hard to write a simple shell-script which will 
check dates and perform needed actions.



-- 
Best regards,
Jeff



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