From owner-freebsd-questions Sat Mar 20 17:59:12 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id D45E714F29 for ; Sat, 20 Mar 1999 17:59:09 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id UAA03305; Sat, 20 Mar 1999 20:58:45 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199903210158.UAA03305@cc942873-a.ewndsr1.nj.home.com> Subject: Re: Crontab entry In-Reply-To: <36F370F7.E821252D@eoe-magical.org> from Donald at "Mar 20, 99 09:57:11 am" To: druid@eoe-magical.org (Donald) Date: Sat, 20 Mar 1999 20:58:45 -0500 (EST) Cc: freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Donald wrote, > 5,10,15,20,25,30,35,40,45,50,55 * * * * root /usr/majordomo/wrapper > mj_key_cache 2>&1 | sendmail root > > I put this entry into crontab, ran crontab crontab and get emailed an > error > > root : not found > > it supposed to run every five minutes all the time > can someone help with the correct systax. Despite a number of responses, no one has told you exactly what you need to do. Put the following line in '/etc/crontab,' */5 * * * * root /usr/majordomo/wrapper mj_key_cache 2>&1 | sendmail root This is the same thing you have with the slightly more 'elegant' use of '*/5' rather than a list of minutes. Do NOT use the 'crontab' command when adding things to /etc/crontab. If you wanted to add this to root's regular crontabs, you would, # crontab -e Then add the line, */5 * * * * /usr/majordomo/wrapper mj_key_cache 2>&1 | sendmail root You are confusing the format of /etc/crontab versus the crontab command. The crontab command is for user crontabs while /etc/crontab is for system crontabs (your idea where to draw the line when it comes to root's crontabs may vary). -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message