From owner-freebsd-questions@freebsd.org Sat Mar 5 13:39:13 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AD46BA0A2F9 for ; Sat, 5 Mar 2016 13:39:13 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F83562A for ; Sat, 5 Mar 2016 13:39:12 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id A4268D65E for ; Sat, 5 Mar 2016 13:39:01 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/A4268D65E; dkim=none; dkim-atps=neutral Subject: Re: crontab is not working To: freebsd-questions@freebsd.org References: <047b01d17693$e5151810$af3f4830$@on.ca> <1539211206.3089370.1457152417778.JavaMail.yahoo@mail.yahoo.com> From: Matthew Seaman Message-ID: <56DAE16E.9060704@FreeBSD.org> Date: Sat, 5 Mar 2016 13:38:54 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1539211206.3089370.1457152417778.JavaMail.yahoo@mail.yahoo.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="arhQnepG9NbS0vjtvdXB0hdelHQAwChvh" X-Virus-Scanned: clamav-milter 0.99 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=1.0 required=5.0 tests=SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Mar 2016 13:39:13 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --arhQnepG9NbS0vjtvdXB0hdelHQAwChvh Content-Type: multipart/mixed; boundary="1rrMW9wv6Cql39EJ45aNlBbldXTm1dp5i" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: <56DAE16E.9060704@FreeBSD.org> Subject: Re: crontab is not working References: <047b01d17693$e5151810$af3f4830$@on.ca> <1539211206.3089370.1457152417778.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <1539211206.3089370.1457152417778.JavaMail.yahoo@mail.yahoo.com> --1rrMW9wv6Cql39EJ45aNlBbldXTm1dp5i Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 05/03/2016 04:33, gahn via freebsd-questions wrote: > yes i did remove that "root", but it still a no go. nothing happened. > run that script manually with "bash /root/snmpwalk.sh" with no > issues. i am puzzled. You're expecting the output of that SNMP walk to be mailed back to you? Check /var/log/maillog to see if there's any attempt to send e-mail out of cron. Check (via mailq and 'mailq -Ac') to see if the message is stuck in the mail queue somewhere. Examine the files in /var/mail to see if the message was delivered to a different user mailbox than you were expecting. You can add a line at the top of your crontab to ensure email is sent to a specific address, like so: MAILTO=3Dipfreak@yahoo.com Cheers, Matthew --1rrMW9wv6Cql39EJ45aNlBbldXTm1dp5i-- --arhQnepG9NbS0vjtvdXB0hdelHQAwChvh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJW2uF1XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATo+0QAIaY5GPeFeUbUms3LOWQobFt o2OS/bHq8jP2I7itUB2C84ZSHXOTapmnwUGGRVzloODk4J2vBpsooOU5W4hAttru PiKLIulPyjB2MbK05pwqHIb96HF0rBJVp5dj6/6u2S7bYWrpu55Ys2VYmpMOEbTj DbyJnBgWAE4Lfgx9UYcTHS3OqYAtSztLD4Fxaw0JJKARhxviJHbhthNBTTN2iHn1 nhljVMpLVGmdq6wkWDDDYWiZyVeIGBHlxpkJroWLjJt0uQOIvndptheTjEUnYzHp 3PyTTpjbWMgZARPbAPi1wi0OlbZEhrYahlBwcDqXG3f1Mj9toATeEqPT2VHKZZ1d B2h7pGdBRlk5aJOFXfoybx+Mj7khhxrYxKjqhVCMwTFymSHHWUIz6FjPzfTmtsOq 0KY54nlcJW5cS/GNm7/TIxv06pRClzqBOZsnZuq0iS3FDfAw4k4XeDIX8MigWVcd R+uU9lKQrkhVsYWsjaKBBfkY0nUTiRYImK/VkHxAkhVJHkz/zhX5LQ99TcGuZyUI 51tQoa9vIqJoM8GIG/aJKtgYy4I37XPLU/+ZE1cTkJzO8FoYkpU2PXT/buIy1DNZ U8+wxZFHA+dp/gsUN4ldHor/nEzY6/JEkBqzrRpK7Rd+rbpe1VucHHgeL04PYles RGrUwUSCVeED2o63Ngow =1VhI -----END PGP SIGNATURE----- --arhQnepG9NbS0vjtvdXB0hdelHQAwChvh--