From owner-freebsd-questions@FreeBSD.ORG Sun Nov 9 11:57:11 2008 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 F10271065673; Sun, 9 Nov 2008 11:57:11 +0000 (UTC) (envelope-from msoulier@gmail.com) Received: from mail-gx0-f13.google.com (mail-gx0-f13.google.com [209.85.217.13]) by mx1.freebsd.org (Postfix) with ESMTP id 5AC958FC23; Sun, 9 Nov 2008 11:57:10 +0000 (UTC) (envelope-from msoulier@gmail.com) Received: by gxk6 with SMTP id 6so1612158gxk.19 for ; Sun, 09 Nov 2008 03:57:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=WCAw8HTrdupBPlx4EOGNqMhQGYY1qCcHR9fMQgmub18=; b=X4ZVcDEESkr9QSMHoH+20AzLlSZPjpgZuWrbJhZrmVAKJgCKCTD3eM4BAhahvjai45 mMEHWqHffQ1l6XWA4atXp+n63F8VFN+hLjyKsEFRxllmnSopzSxZaIguE0Pt4o/L9Tm/ xTeTlDw6N7qjk7SMUnGUcL3cJ6sBqPcek4mvA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=jWZgGds47RUgkw4TcdVaV4Zx+oMMfRrvLGpJTTThlLd4TEYf7GVrZfTct9d2E5lYFu 7tW/GGtB2eL/Wb94Tj2PtVpme0Fr+4vi6JAPxoE+vbQ2Yz16Ljw/pZnG9l058icqUyEu D1FWwmy79aVSsikFugdOPwt0yaf6EfwC+f6j0= Received: by 10.151.102.16 with SMTP id e16mr7612916ybm.90.1226231830256; Sun, 09 Nov 2008 03:57:10 -0800 (PST) Received: by 10.150.135.4 with HTTP; Sun, 9 Nov 2008 03:57:10 -0800 (PST) Message-ID: Date: Sun, 9 Nov 2008 06:57:10 -0500 From: "Michael P. Soulier" Sender: msoulier@gmail.com To: "Jeremy Chadwick" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 221351eebb8687fb Cc: freebsd-questions Subject: debugging cronjobs not running 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: Sun, 09 Nov 2008 11:57:12 -0000 So, I'm running cron in debug mode, and I do see things like this about my crontab. load_entry()...returning successfully load_env, read <*/5 * * * * cacti /usr/local/bin/php /usr/local/share/cacti/poller.php 1>/dev/null 2>&1> load_env, parse error, state = 7 but that parse_error line is the same for many links that do seem to be run properly. The symptoms I'm seeing is some cronjobs, specifically weekly ones, not running as expected. Plus, I used to get email from the nightly runs of periodic, and now I don't see anything. I know some jobs aren't running because they produce files as output and I'm not seeing them. That, or they're simply running unsuccessfully. One thing I noticed is that "man 5 crontab" seems to make no mention of the "user" field used in /etc/crontab, but that's likely just a documentation error. Has anyone ever configured cronjobs that just didn't run, or you didn't get mail for them like you should have? Thanks, Mike -- Michael P. Soulier "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein