From owner-freebsd-questions@FreeBSD.ORG Tue Mar 3 21:10:34 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD0E1106566C for ; Tue, 3 Mar 2009 21:10:34 +0000 (UTC) (envelope-from apseudoutopia@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.175]) by mx1.freebsd.org (Postfix) with ESMTP id AF15B8FC18 for ; Tue, 3 Mar 2009 21:10:34 +0000 (UTC) (envelope-from apseudoutopia@gmail.com) Received: by wf-out-1314.google.com with SMTP id 27so3050227wfd.7 for ; Tue, 03 Mar 2009 13:10:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=gm2+xRt0UVvW0S2ObRK6NRKtz6IJYG7myAI4Ke3cP+o=; b=hHx4yJQ17FPWgjosJkRlm/Q1qU9874ffiJ9w9W95Fawl3NRz/Q6rSsa7iylvP/wkEe RvJPxqVH3TGHqsLXuWyTmcZvb/fqQQYEV9YvqaUU8GdlJvLKRXKHK73Tz5EL7BXefqbb WyzydOLiqgyFJKGMOjZceYnxDY3AbblVjb8Yk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=m5VPJzTVZ9ZS5GBF+CNlGB5YKRfUajwT24fWv+1C/a9zH4YcWrtWlFxip7r3CNDP7P SDKlPWegRkmaZlZlL6WZF2hcfiY0z6DMYbGJvO768dHdCC71M0GuoD26fk1vS1/2fPX6 Fd2/DfoM30NXzxbNa3Ap2vaiiv7PmrtPkCDpM= MIME-Version: 1.0 Received: by 10.142.237.19 with SMTP id k19mr3780725wfh.209.1236114634150; Tue, 03 Mar 2009 13:10:34 -0800 (PST) In-Reply-To: <4ad871310903021914q647d6a40ncdb0bb9d8a3582c9@mail.gmail.com> References: <27ade5280903011124v4d6d9fdq2071d5ab44a37ca9@mail.gmail.com> <4ad871310903021914q647d6a40ncdb0bb9d8a3582c9@mail.gmail.com> Date: Tue, 3 Mar 2009 16:10:34 -0500 Message-ID: <27ade5280903031310u6d7956u830938f27ea535c6@mail.gmail.com> From: APseudoUtopia To: Glen Barber Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Cron Not Sending Mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2009 21:10:35 -0000 On Mon, Mar 2, 2009 at 10:14 PM, Glen Barber wrot= e: > On Sun, Mar 1, 2009 at 2:24 PM, APseudoUtopia w= rote: > [snip] >> >> ##### >> # User www's crontab >> # Note, I also tried removing the MAILTO to no avail >> ##### >> MAILTO=3Droot >> # m =C2=A0 =C2=A0 h =C2=A0 =C2=A0 =C2=A0 dom =C2=A0 =C2=A0 mon =C2=A0 = =C2=A0 dow =C2=A0 =C2=A0 cmd >> * =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A0 =C2=A0 * = =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A0 =C2=A0 echo "Hello" >> >> > [snip] > > 1.) =C2=A0You are not using the full path to /bin/echo, which is why it i= s failing. > > 2.) This is a poor designed way to test cron's mail output. > > A Better(tm) way would be something like: > MAILTO=3Droot > */5 * * * * /bin/ping -c1 localhost >/dev/null > > which would mail to root on success or failure. > > Regards, > > -- > Glen Barber > Thanks for the tips. I've put the following line in my normal user account's crontab (This account does have a shell, it's one I use on a daily basis): SHELL=3D/bin/sh MAILTO=3Dmy_email_account@gmail.com * * * * * /sbin/ping -c4 localhost I'm getting no emails at all. In /var/log/maillog, I'm getting the following output: Mar 3 21:10:00 domain sendmail[86797]: n23LA0td086797: from=3Dwww, size=3D0, class=3D0, nrcpts=3D0, msgid=3D<200903032110.n23LA0td086797@subdomain.domain.tld>, relay=3Dwww@localhost