From owner-freebsd-questions@FreeBSD.ORG Fri Nov 25 05:21:24 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 4AB4D16A41F for ; Fri, 25 Nov 2005 05:21:24 +0000 (GMT) (envelope-from racerx@makeworld.com) Received: from makeworld.com (makeworld.com [216.201.118.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5312F43D53 for ; Fri, 25 Nov 2005 05:21:23 +0000 (GMT) (envelope-from racerx@makeworld.com) Received: from localhost (localhost.com [127.0.0.1]) by makeworld.com (Postfix) with ESMTP id 8534E645A; Thu, 24 Nov 2005 23:21:22 -0600 (CST) Received: from makeworld.com ([127.0.0.1]) by localhost (makeworld.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 68964-07; Thu, 24 Nov 2005 23:21:20 -0600 (CST) Received: by makeworld.com (Postfix, from userid 1008) id 462CA6458; Thu, 24 Nov 2005 23:21:20 -0600 (CST) Received: from [216.201.118.138] (racerx.makeworld.com [216.201.118.138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by makeworld.com (Postfix) with ESMTP id 0751E6456; Thu, 24 Nov 2005 23:21:19 -0600 (CST) Message-ID: <43869F4F.10207@makeworld.com> Date: Thu, 24 Nov 2005 23:21:19 -0600 From: Chris User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051122) X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Scheidt References: <000601c5f17a$0eda0340$ae01a8c0@asp.radix.srv> <20051125051203.GA17581@panix.com> In-Reply-To: <20051125051203.GA17581@panix.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-2.3.3 (20050822) at makeworld.com - FreeBSD:The Power To Serve Cc: Anirban Adhikary , freebsd-questions@freebsd.org Subject: Re: doubts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: RacerX@makeworld.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2005 05:21:24 -0000 David Scheidt wrote: > On Fri, Nov 25, 2005 at 10:08:15AM +0530, Anirban Adhikary wrote: > >>Hi guys. This is Anirban. I have a doubt on crontab.The question is >> >>how to write a crontabwhich takes the back-up at 11:59 pm daily and every tuesday of the week >>Hope i will receive the answer soon. > > > I don't quite understand what you want. The format of a line in a > crontab file is as follows. There are five columns that specify the > time to run the job at: > > Minutes Hours Day of Month Month Day of week > > 59 23 * * * /path/to/script > > Would run /path/to/script every day at 11:59 pm. If what you want to > do is only run it on tuesday, > > 59 23 * * 2 /path/to/script > > The utility to install crontabs is called crontab. The format of > entries is defined in the crontab(5) man page. 'man 5 crontab' will > allow you to read that. Also note - in your scripts, have absoulte paths. IE: if you need to cat the /var/log/auth.log /bin/cat /var/log/auth.log -- Best regards, Chris If muprhy's law can go wrong, it will.