From owner-freebsd-newbies@FreeBSD.ORG Mon Jul 5 23:27:58 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE9D516A519 for ; Mon, 5 Jul 2004 23:27:58 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by mx1.FreeBSD.org (Postfix) with SMTP id 9C1AB43D5D for ; Mon, 5 Jul 2004 23:27:58 +0000 (GMT) (envelope-from thatha@gmail.com) Received: by mproxy.gmail.com with SMTP id d19so89462rnf for ; Mon, 05 Jul 2004 16:27:44 -0700 (PDT) Received: by 10.38.92.63 with SMTP id p63mr527197rnb; Mon, 05 Jul 2004 16:27:44 -0700 (PDT) Message-ID: Date: Tue, 6 Jul 2004 09:27:44 +1000 From: Gautam Gopalakrishnan To: Taulant Galimuna In-Reply-To: <060b01c4629e$b60e45c0$0302a8c0@webmaster2> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20040704071004.E11E8AE097@nezlok.unixathome.org> <060b01c4629e$b60e45c0$0302a8c0@webmaster2> cc: freebsd-newbies@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: cron.daily and cron.hourly X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jul 2004 23:27:59 -0000 On Mon, 5 Jul 2004 16:45:27 +0200, Taulant Galimuna wrote: > Hi, > > I had a problem with my web-server that I already solved. But now I have to > execute a PHP file on my FreeBSD server every hour, to get the needed > updates from database. > > I know I need a shell script to execute that file and have to put this > script to some directory that would execute it every hour. > > In linux it is appeared to be at /etc/cron.hourly Run: # crontab -e Add: 0 * * * * /path/to/your/script The manpage should give more details... Gautam