From owner-freebsd-questions@FreeBSD.ORG Mon Jul 5 15:00:12 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D27BA16A4CE for ; Mon, 5 Jul 2004 15:00:12 +0000 (GMT) Received: from mbox.ibctech.ca (dev.eagle.ca [209.167.58.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id F195543D55 for ; Mon, 5 Jul 2004 15:00:11 +0000 (GMT) (envelope-from iaccounts@ibctech.ca) Received: (qmail 56241 invoked by uid 1002); 5 Jul 2004 15:00:21 -0000 Received: from iaccounts@ibctech.ca by pearl.ibctech.ca by uid 89 with qmail-scanner-1.22 (clamscan: 0.73. spamassassin: 2.63. Clear:RC:1(127.0.0.1):. Processed in 4.552555 secs); 05 Jul 2004 15:00:21 -0000 Received: from unknown (HELO pearl.ibctech.ca) (127.0.0.1) by localhost.ibctech.ca with SMTP; 5 Jul 2004 15:00:16 -0000 Received: from 209.167.16.15 (SquirrelMail authenticated user steve@ibctech.ca); by pearl.ibctech.ca with HTTP; Mon, 5 Jul 2004 11:00:17 -0400 (EDT) Message-ID: <3298.209.167.16.15.1089039617.squirrel@209.167.16.15> In-Reply-To: <060b01c4629e$b60e45c0$0302a8c0@webmaster2> References: <20040704071004.E11E8AE097@nezlok.unixathome.org> <060b01c4629e$b60e45c0$0302a8c0@webmaster2> Date: Mon, 5 Jul 2004 11:00:17 -0400 (EDT) From: "Steve Bertrand" To: "Taulant Galimuna" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: freebsd-questions@freebsd.org Subject: Re: cron.daily and cron.hourly X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jul 2004 15:00:12 -0000 > 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 > > > but in FreeBSD I can't locate it. > > Any one can help ?! Each user in FreeBSD can have their own cron list. You can edit a users crontab like this: # crontab -u username -e and then add the following into it to run your app at 1 minute after every hour of every day of every month: 1 * * * * /path/to/app/app.sh You can also feed parameters after the command you want to run. See man(5) crontab for a good description of the layout of the crontab entries. Regards, Steve > > Regards > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >