Date: Thu, 24 Nov 2005 23:21:19 -0600 From: Chris <racerx@makeworld.com> To: David Scheidt <dscheidt@panix.com> Cc: Anirban Adhikary <anirban.adhikary@123india.net>, freebsd-questions@freebsd.org Subject: Re: doubts Message-ID: <43869F4F.10207@makeworld.com> In-Reply-To: <20051125051203.GA17581@panix.com> References: <000601c5f17a$0eda0340$ae01a8c0@asp.radix.srv> <20051125051203.GA17581@panix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43869F4F.10207>