Creating periodic cron jobs

Robert Fitzpatrick robert at webtent.com
Thu May 13 08:50:42 PDT 2004


I am trying to create a quarter-daily cron job on my FreeBSD 5.2.1 as
follows in /etc/crontab:

05 0,6,12,18     *     *     *     root  periodic quarter-daily

I created the /etc/periodic/quarter-daily directory and placed my script
there. After I ran 'crontab -u root /etc/crontab', now I am getting
these mail messages below, it seems I have created, for example, cron
jobs as 'root /usr/libexec/atrun' in addition to the usual
'/usr/libexec/atrun'. It has done this for daily, weekly, etc. as well.
Can someone tell me what I did wrong?

Return-Path: <root at esmtp.webtent.net>
Received: from esmtp.webtent.net ([unix socket]) by esmtp.webtent.net
        (Cyrus v2.1.16) with LMTP; Thu, 13 May 2004 11:45:01 -0400
X-Sieve: CMU Sieve 2.2
Received: from localhost (localhost.webtent.net [127.0.0.1]) by
        esmtp.webtent.net (WebTent ESMTP Postfix Internet Mail Gateway)
with ESMTP
        id 2734CEBD26 for <root at esmtp.webtent.net>; Thu, 13 May 2004
11:45:01 -0400
        (EDT)
Received: from esmtp.webtent.net ([127.0.0.1]) by localhost
        (esmtp.webtent.net [127.0.0.1]) (amavisd-new, port 10024) with
ESMTP id
        22701-08 for <root at esmtp.webtent.net>; Thu, 13 May 2004 11:45:01
-0400 (EDT)
Received: by esmtp.webtent.net (WebTent ESMTP Postfix Internet Mail
        Gateway, from userid 0) id 053C8EBD24; Thu, 13 May 2004 11:45:01
-0400 (EDT)
From: root at esmtp.webtent.net (Cron Daemon)
To: root at esmtp.webtent.net
Subject: Cron <root at esmtp> root /usr/libexec/atrun
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: <20040513154501.053C8EBD24 at esmtp.webtent.net>
Date: Thu, 13 May 2004 11:45:01 -0400 (EDT)
X-Virus-Scanned: by the WebTent ESMTP Postfix Internet Mail Gateway
X-Evolution-Source: imap://admin;auth=CRAM-MD5@esmtp.webtent.net/
Mime-Version: 1.0

root: not found

-- 
Robert



More information about the freebsd-questions mailing list