Re: [gentoo-user] irritating cron habit : solved

2011-02-21 Thread YoYo Siska
On Mon, Feb 21, 2011 at 12:39:43AM -0500, Philip Webb wrote: 110220 Philip Webb wrote: 110220 Florian Philipp wrote: 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

Re: [gentoo-user] irritating cron habit : solved

2011-02-21 Thread Adam Carter
btw, if I need to check if the network is up in a script, I usually do ping -q -c1 -w4 some.remote.host /dev/null 21 command-to-run-if-remote-host-reachable It the advantage that it checks directly connection to the host you wish to connect to, so it also won't run the command if your

Re: [gentoo-user] irritating cron habit : solved

2011-02-20 Thread Philip Webb
110220 Philip Webb wrote: 110220 Florian Philipp wrote: 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. Indeed it does: I tried delaying