Date: Tue, 12 Jun 2012 12:21:31 -0500 From: Dan Lists <lists.dan@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: Newbie question: Why aren't my cron jobs running? Message-ID: <CAPW8bZ1fFB8S0=kRpJ=X7w-Da=W4hjuXFHHTuZMc_Ac5FyTs3Q@mail.gmail.com> In-Reply-To: <20120612190629.6a45cb11.freebsd@edvax.de> References: <201206120506.q5C56L2H026673@mail.r-bonomi.com> <op.wfsk2or734t2sn@tech304> <20120612190629.6a45cb11.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 12, 2012 at 12:06 PM, Polytropon <freebsd@edvax.de> wrote: > On Tue, 12 Jun 2012 08:29:02 -0500, Mark Felder wrote: >> On Tue, 12 Jun 2012 00:06:21 -0500, Robert Bonomi >> <bonomi@mail.r-bonomi.com> wrote: >> >> > Comment: using a leading zero on the numeric fields is a BAD IDEA(tm) = -- >> > you >> > are *strongly* encocuraged to remove them. =A0Yes, that means numbers = will >> > not >> > be column aligned, but it is a small price to pay to avoid the >> > hair-tearing >> > that =3Dwill=3D ensue when using it bites you. >> >> Any other info on this? I've never heard of this before and I've never >> seen an issue using leading zeroes on the minutes value. > > There are some "specific interpretations" that _may_ be > interpreted according to the C rules, e. g. prefix 0x- > for hexadecimal or 08- for octal notation. For example, > 083 !=3D 83, just as 0x83 !=3D 83. As it has been mentioned, > spaces also have a significant meaning in crontabs, so > they cannot be used everywhere to align data columns. > The syntax of his crontab file is correct. Vixie cron does care about leading spaces, tabs, extra spaces, or leading zeros. Earlier versions of cron are much pickier about the crontab file. The cron logs show that it is starting his jobs at the correct times. It is far more likely that there is a problem with the scripts. A very common cause of problems with scripts run from cron is that they do not inherit your environment. Do the scripts run from the command line? If the do, then the problem is most likely something in your environment that the scripts need.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPW8bZ1fFB8S0=kRpJ=X7w-Da=W4hjuXFHHTuZMc_Ac5FyTs3Q>