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 via email to