public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Philip Webb <purslow@ca.inter.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] irritating cron habit
Date: Sun, 20 Feb 2011 13:18:04 -0500	[thread overview]
Message-ID: <20110220181804.GA3724@ca.inter.net> (raw)
In-Reply-To: <4D6132C9.5070607@binarywings.net>

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




  reply	other threads:[~2011-02-20 18:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-20 14:04 [gentoo-user] irritating cron habit Philip Webb
2011-02-20 15:27 ` Florian Philipp
2011-02-20 18:18   ` Philip Webb [this message]
2011-02-21  5:39     ` [gentoo-user] irritating cron habit : solved Philip Webb
2011-02-21 10:23       ` YoYo Siska
2011-02-21 11:32         ` Adam Carter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110220181804.GA3724@ca.inter.net \
    --to=purslow@ca.inter.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox