From owner-freebsd-questions Thu Feb 14 11:55:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from lists.unixathome.org (lists.unixathome.org [210.48.103.158]) by hub.freebsd.org (Postfix) with ESMTP id AD12A37B402 for ; Thu, 14 Feb 2002 11:55:06 -0800 (PST) Received: from wocker (lists.unixathome.org [210.48.103.158]) by lists.unixathome.org (8.11.6/8.11.6) with ESMTP id g1EJt3k28638; Fri, 15 Feb 2002 08:55:03 +1300 (NZDT) (envelope-from dan@lists.unixathome.org) Message-Id: <200202141955.g1EJt3k28638@lists.unixathome.org> From: "Dan Langille" Organization: DVL Software Limited To: questions@freebsd.org Date: Thu, 14 Feb 2002 14:54:59 -0500 MIME-Version: 1.0 Subject: crontab entries need a CR/LF at the end Reply-To: dan@langille.org Cc: dan@langille.org X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Here's what I did: I edited ~/crontab and added an entry. That new line did not end in a CR/LF (i.e. I didn't hit ENTER at the end of the line). Then I did a crontab ~/crontab and watched /var/log/cron. The job was never run. I then modified the crontab to contain an ENTER at the end of that line, and did another crontab ~/crontab. Then the job run. I've been bitten by this at least three times. And I've seen other get it too. IMHO, it breaks POLA. Anyone agree? I can't see anything in the man pages about this. I must also be a simple fix. -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practical examples To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message