Date: Mon, 5 Jul 2004 11:00:17 -0400 (EDT) From: "Steve Bertrand" <iaccounts@ibctech.ca> To: "Taulant Galimuna" <taulant@ipko.net> Cc: freebsd-questions@freebsd.org Subject: Re: cron.daily and cron.hourly 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>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3298.209.167.16.15.1089039617.squirrel>
