Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Mar 1999 20:58:45 -0500 (EST)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        druid@eoe-magical.org (Donald)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Crontab entry
Message-ID:  <199903210158.UAA03305@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <36F370F7.E821252D@eoe-magical.org> from Donald at "Mar 20, 99 09:57:11 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903210158.UAA03305>