From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PrDsY-0006Tl-Tz for garchives@archives.gentoo.org; Sun, 20 Feb 2011 18:19:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CCE10E04D2; Sun, 20 Feb 2011 18:18:06 +0000 (UTC) Received: from smtp-relay1.uniserve.ca (smtp-relay1i.uniserve.ca [216.113.194.203]) by pigeon.gentoo.org (Postfix) with ESMTP id 7FA8E1C04B for ; Sun, 20 Feb 2011 18:18:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=uniserve.com; s=2010; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date; bh=oxQMWmaIEduYO7M9fRCzxAy078W+doad7qCT5aop978=; b=En/dMbjKI74wpb3JsfP8pnaVDvT8kpijKmnGlUW2YCEZJeyjupLMIuE8Tk/mUj2SQyy4hlvtbA9MD5sn085z6kjifq7pc9kTtz+FXxOevDpo9m5GXmf0lpcpiQ3Z3UiD; Received: from ip-253.59.99.216.dsl-cust.ca.inter.net ([216.99.59.253] helo=ca.inter.net) by smtp-relay1.uniserve.ca with smtp (Exim 4.72) (envelope-from ) id 1PrDrA-00012s-RM for gentoo-user@lists.gentoo.org; Sun, 20 Feb 2011 10:18:06 -0800 Received: by ca.inter.net (sSMTP sendmail emulation); Sun, 20 Feb 2011 13:18:04 -0500 Date: Sun, 20 Feb 2011 13:18:04 -0500 From: Philip Webb To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] irritating cron habit Message-ID: <20110220181804.GA3724@ca.inter.net> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <20110220140407.GC3758@ca.inter.net> <4D6132C9.5070607@binarywings.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D6132C9.5070607@binarywings.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Sender-Info: purslow@ca.inter.net X-Scanner: OK. Scanned. X-Uniserve-Spam-Score: 0.1 1 (/) X-Uniserve-Spam-Report: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.1 RDNS_DYNAMIC Delivered to trusted network by host with dynamic-looking rDNS X-Archives-Salt: X-Archives-Hash: 63dfe02a0b4888f3d1764dba68de4096 110220 Florian Philipp wrote: > Am 20.02.2011 15:04, schrieb Philip Webb: >> I fetch my mail using a user cron job, as recommended for security. >> Usually, this works very well, but occasionally the cron job runs >> before the Dhcpcd command has made the necessary connection >> which results in a file ~/dead.letter , which has to be deleted >> Is there a way to fix this ? -- I could perhaps write a 2-line script >> which would run 'dhcpcd eth0 ; /etc/init.d/vixie-cron', >> while removing Vixie-cron from the Default runlevel. > When dhcpcd runs, there should be the following files: > /var/run/dhcpcd.pid <<-- not this one > /var/run/dhcpcd-eth0.pid <<-- yes > Just change your cron job to look like > 'test -e /var/run/dhcpcd.pid && fetchmail' That's by far the simplest & it still fetches the mail, so we'll see if it also avoids the occasional internal spam msgs. Thanks for all the suggestions, which I will add to my Linux notes. -- ========================,,============================================ SUPPORT ___________//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT `-O----------O---' purslowatchassdotutorontodotca