Date: Sat, 24 Jun 2000 19:10:42 PDT From: "Peter Dilley" <petermct@hotmail.com> To: questions@freebsd.org Subject: Crontab Format questions Message-ID: <20000625021042.86553.qmail@hotmail.com>
next in thread | raw e-mail | index | archive | help
Hello I was suggested to forward my email question here. I am not sure if this is a list or just email forum. If it is, I am not on it so my email address is petermct@hotmail.com If you could respond to the list and carbon copy my email that would be best for answering all parties involved. I got two suggestions given to me so far. One - Run the dyndns update with cron twice a month. Problem is it may trigger frequent update abuse on dyndns service and disable the account (pretty sad isn't it). Two - Run a script once a day that checks a files datestamp. My best educated guess on the "logic" to this approach is a bash script that somehow looks at some file for a datestamp. If today's date is 28 days or more from the file datestamp, delete the file, run the dyndns update program, create a new file. That takes care of the logic of the script but only being a few days new to bash I havn't the clue on how to translate the logic into bash/script commands to do the logic. GRR! Yeah I check the man pages (both of them) didn't learn much. Thought to run hourly I go to the hour section and put */24 (all hours devide by 24) nope didn't work.. Turns out it was a 0 in the minute section of crontab. Apparently that fires off every hour when the minute = zero. >From: Joey Garcia <bsd_usr@yahoo.com> >To: Peter Dilley <petermct@hotmail.com> >Subject: Re: BSD User Group >Date: Sat, 24 Jun 2000 09:43:55 -0700 (PDT) >MIME-Version: 1.0 >Received: from [128.11.68.118] by hotmail.com (3.2) with ESMTP id >MHotMailBB1E304B00B9D820F3D0800B447611270; Sat Jun 24 09:43:56 2000 >Received: (qmail 21594 invoked by uid 60001); 24 Jun 2000 16:43:55 -0000 >Received: from [206.170.210.8] by web218.mail.yahoo.com; Sat, 24 Jun 2000 >09:43:55 PDT >From bsd_usr@yahoo.com Sat Jun 24 09:46:33 2000 >Message-ID: <20000624164355.21593.qmail@web218.mail.yahoo.com> > >I haven't really messed with cron all that much. >Actually, not at all. I haven't had the need yet to >automate something to run. > >Have you checked into the man page at all? I haven't >looked at it so I don't know what information it may >give. > >If the man page doesn't help, the a quick email to >questions@freebsd.org might be the trick to get the >answers you might need. The people on that >mailinglist are near experts and are willing to lend a >helping hand. > >I wish I could help you more than that, but with my >inexperience with cron, there's not much more I can >say. > >Good luck! > >Joey >--- Peter Dilley <petermct@hotmail.com> wrote: > > I will try and make a meeting in a month or so. I am > > booked up until then. > > > > In the meantime, maybe you can answer a super quick > > crontab question. > > > > How do you set a schedule to happen every 28 days, > > not the 28th day of each > > month? > > > > I have a dynamic dns service which will delete my > > account after 30 days if I > > don't update it. I want to touch or delete a config > > file to force the update > > client software to talk to the server and keep my > > account active. ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000625021042.86553.qmail>