From owner-freebsd-questions Mon Mar 6 13:30: 4 2000 Delivered-To: freebsd-questions@freebsd.org Received: from www.ozler.com (asy142.as50.sol.superonline.com [212.252.50.142]) by hub.freebsd.org (Postfix) with ESMTP id D4EAD37BA0D; Mon, 6 Mar 2000 13:29:36 -0800 (PST) (envelope-from ertank@ozlerplastik.com) Received: from ozlerplastik.com (ertan [192.168.0.20]) by www.ozler.com (8.9.3/8.9.3) with ESMTP id NAA35442; Mon, 6 Mar 2000 13:50:22 +0200 (EET) (envelope-from ertank@ozlerplastik.com) Message-ID: <38C3996C.83C2F7A3@ozlerplastik.com> Date: Mon, 06 Mar 2000 13:41:32 +0200 From: Ertan Kucukoglu Organization: =?iso-8859-9?Q?=D6zler?= Plastik San. ve Tic. A.S. X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: tr,en MIME-Version: 1.0 To: cjclark@home.com Cc: John Baldwin , questions@FreeBSD.ORG Subject: Re: crontab entries References: <200002291211.HAA02326@server.baldwin.cx> <38C2565E.69DFB6F5@ozlerplastik.com> <20000305114958.D62310@cc942873-a.ewndsr1.nj.home.com> Content-Type: text/plain; charset=iso-8859-9 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Crist J. Clark" wrote: > > On Sun, Mar 05, 2000 at 02:43:10PM +0200, Ertan Kucukoglu wrote: > > John Baldwin wrote: > > > > > > Alright, your crontab looks fine. However, my question is: how do you know > > > that periodic is running your scripts on Sunday? You said that your modem > > > dials out at 1:59 on Sunday, well, that is probably due to one of the > > > weekly scripts in /etc/periodic/weekly/ needing net access for some reason, > > > or perhaps a one of the daily scripts in /etc/periodic/daily/ needing > > > net access. > > > > Hello again, > > > > After a week I'm here again. I checked my crontab I put some 'ps ax' > > jobs. And see that something that I'm not sure runs my 'ppp -ddial > > -alias isp' command in a way in the periodic *daily* scripts. > > > > I put one cron job before periodic daily script and one after that. I > > see that I'm connected after that periodic daily scripts run. I also > > checked if some weekly scripts connects me but I see that their running > > time is different, 3:30. > > > > Now, I'll check to find out which script is running my ppp, or making it > > to run. > > My guess, > > 440.status-mailq > > The mailq(1) is going to do DNS lookups. > -- > Crist J. Clark cjclark@home.com The problem is before the 440.status-mailq. Here is the output of periodic-daily: ----- 0 00:01:00 0 00:00:59 0 00:00:58 [snipped] 0 00:00:03 0 00:00:02 0 00:00:01 0 00:00:00 fetchmail: can't accept options while a background fetchmail is running. Subject: www.ozler.com daily run output Removing stale files from /var/preserve: Cleaning out old system announcements: Removing stale files from /var/rwho: [snipped] ----- I see here that periodic daily runs my /etc/rc.conf. I have delay command in my rc.conf just after 'ppp -ddial -alias isp' command. The seconds going down comes from delay command. That file is run *before* 120.clean-preserve. "Removing stale files from /var/preserve:" message is included in that file. So there is two files: 100.clean-disks 110.clean-tmps I didn't see anything in that files and anyfile in /etc/periodic/daily/ that includes rc.conf or something related. (If anybody wants to look at them I can mail these (or all) periodic daily files) My /etc/periodic/daily files are original ones. I didn't change them. Also I remember that 'periodic does not run non executable files', /etc/rc.conf is not executable ("-rw-r--r--"). I also wish to know which directories are given as parameter to periodic command in crontab? Thanks, -- Ertan Kucukoglu ertank@ozlerplastik.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message