From owner-freebsd-questions@FreeBSD.ORG Wed Aug 18 08:13:48 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 589A2106564A for ; Wed, 18 Aug 2010 08:13:48 +0000 (UTC) (envelope-from antonio@antonioshome.net) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 190AD8FC14 for ; Wed, 18 Aug 2010 08:13:47 +0000 (UTC) Received: by qyk4 with SMTP id 4so336189qyk.13 for ; Wed, 18 Aug 2010 01:13:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.78.41 with SMTP id i41mr5122412qak.133.1282119227298; Wed, 18 Aug 2010 01:13:47 -0700 (PDT) Received: by 10.229.28.65 with HTTP; Wed, 18 Aug 2010 01:13:47 -0700 (PDT) X-Originating-IP: [213.164.164.164] In-Reply-To: <4C6B847A.5090408@mapper.nl> References: <4C6B847A.5090408@mapper.nl> Date: Wed, 18 Aug 2010 10:13:47 +0200 Message-ID: From: Antonio Vieiro To: Mark Stapper Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-questions@freebsd.org" Subject: Re: how to run task periodically X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Aug 2010 08:13:48 -0000 crontab -e ? See http://en.wikipedia.org/wiki/Cron Cheers, Antonio 2010/8/18 Mark Stapper : > =A0Hi, > > 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 > >