[Linux-Anyway] Re: crond

  • From: Meph Istopheles <meph@xxxxxxxxxxx>
  • To: Linux-Anyway@xxxxxxxxxxxxx
  • Date: Fri, 12 Dec 2003 14:40:23 -0800 (PST)

> >   I found that crond wasn't set to start at boot, so I'd
> > added the line to rc.local (I hope this is the right syntax):

> > /usr/sbin/cron -f

> Why put the "-f" there since it makes crond run in the
> foreground rather than as a daemon?

  Hadn't really thought about it.  Just perused the man file,
quickly, & put it in.  I've taken it out now.

> >   Does this just mean that it's taking the line from my
> > crontab to ~not~ send me mail each time it starts?

> crond shouldn't mail you anything unless a task in your crontab
> outputs something on stdout or stderr. You can avoid that
> happening by appending (without the quotes) " > /dev/null 2>&1"
> to all the commands you cronify.

  Heh.  RH hold-over.  The /dev/null 2>&1 did nothing.  I'll put
it in now I'm in slack.

--
  We're all going to die.
To unsubcribe send e-mail with the word unsubscribe in the body to:   
Linux-Anyway-Request@xxxxxxxxxxxxx?body=unsubscribe

Other related posts: