Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 May 2000 11:34:00 +1000
From:      "Doug Young" <dougy@gargoyle.apana.org.au>
To:        "Jonathan Chen" <Jonathan.Chen@itouch.co.nz>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: "bad day_of_the_month" (yes really !!!) cron questions
Message-ID:  <01aa01bfb632$612c3390$847e03cb@ROADRUNNER>
References:  <018e01bfb62c$58481b00$847e03cb@ROADRUNNER> <20000505131420.A798@jonc.itouch.co.nz>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Thanks Jonathan

> There's root's crontab, and then there's the system's crontab. On a
> fresh install, there are no crontabs for root; but there is a system
> crontab in /etc/crontab.

OK .... so far so good

> The format for the personal crontab vs the system crontab differs. The
> system has an extra run-as-user field.

OK .... that shouldn't be a problem since the job I have in mind doesn't
need to be messed with by users ... as long as I can configure it remotely
thats all I need
>
> > I then tried running "crontab crontab", but that just told me
> > "crontab":0: bad day_of_month
> > crontab: errors in crontab file, can't install
>
> This tends to indicate an error in your crontab file format. If you
> send it to the list, betcha we can find out what it is.

attached hereto ...... nothing peculiar I can see, and I did try running the
commands on a few different machines too, some 3.2 & some 4.0, exactly same
response every time


[-- Attachment #2 --]
ELFFreeBSD4U4 (444ԀԀPPP<R<</usr/libexec/ld-elf.so.1C_=4X+3Y[@T$:2);L#]KN GJ
!^I\CFQU0B"859A&H,1/D-VP?%E>*
	<R(.MS'76WZO<-3
9EAhHؓMX9Uh*\X"a"g(n8z@ؑVx.hȏ""h"XTHȓH[""x"xx"&(%5@"G"L8UX4_*gXCv81}x"<"ȒpHȐ)(LBLqH
kH'6&8=!*X;1'7ؐ&"<HKB"G+KS8\bcȑuj"s"y"h""؏"("pؒ%,(Y"  libutil.so.3_DYNAMIC_GLOBAL_OFFSET_TABLE__init_finireallocstrchrfreestrncpysyslogopenclosemalloc___runetype_CurrentRuneLocalestrdupstrcmpwarnstrerrorgetpid__errorunlinksprintf_DefaultRuneLocalestrncmp___tolower__sFexitstrcpyumasksetuidgeteuidstrcasecmpseteuidlogin_getclass__prognamegetuidforkgetgrnamftruncatefprintftimelibc.so.4printfstrrchrchdiroptargoptindgetoptatexitfflushfseekftellcallocfgetssscanffopenfclosegetpwuidrewindatoifdopenmkstempgetenvsetlinebuf__swbuf__srgetgetpwnamungetcwarnxwaitutimestaterrenvironendpwentfscanfexeclpsetreuidmkdirflockrenamefchmodfchowngetgidsignalsetlocaleerrxctimeopenlogfcntl_etext_edata__bss_start_endend-<.@HDS*FC $>(Q,A0?48R<K@5DVH$LPJT1X'\P`+d4h(lWp,t2xE|OTX
 <%6L7M/H3@8)	!9B0U=G:"&;
 $Y(,N048w5%%h%h%h%h%h %h(%h0% h8p%$h@`%(hHP%,hP@%0hX0%4h` %8hh%<hp%@hx%Dh%Hh%Lh%Ph%Th%Xh%\h%`hp%dh`%hhP%lh@%ph0%th %xh%|h%h%h%h%h%h%h %h(%h0%h8p%h@`%hHP%hP@%hX0%h` %hh%hp%hx%h%h%h%h%h%h%h%hp%h`%hP%h@%h0%h %h%h%h%h%h%h%h%h %h(%h0% h8p%$h@`%(hHP%,hP@%0hX0%4h` %8hhUWVSҍu^|=~)}t#E8t8/u	H
@8u<tRhvWVSPUS=tv;uЃw[ÉUS=tvЃ;u[ÐUuhhh hJhhh jvUVSu]`hojhm SV#$hdE) u:hdhhh5`hx) ji=w,$v'j)UWV}uPuhjj0hdwhdhx 0$p5!h7gthHjD5u5hejj0hdNw=thwcv=thwv;v=thwNvh/h/VWYx=t<<tLh:<<t%jc4hQ
h=(u
He(}h*jh8hnuhh:j~(}h=jd t"hhdhPYe^_ÉUtShdh5`hxw&hdhh]S h8SÃu58uhdhjvEPh:j		ujh>
y;|
tvhRbS"ƒuSS]ÉUtShdh5`hxc%hdhh]S S't48uhdhjEPh:j
]ÉUuHPhhhÐULWVShdh5`hx$hdhh}W h8WƃuX8tWh:jhdh h8hGƃ uhGjj?vfhQh- hMǃu+hh:P! P@P*PW }hijvhpW~uhr@		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ÍvUWVS]+@C;t PEPuCF;tPEPuGd9re[^_ÉUWVS]}uFG<w	^C@<~wC-v<u^C?C%PhSNe[^_UWVSu]@PǃSVWge[^_ÐUPPUÐ$FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v 1.12 1999/08/28 01:15:52 peter Exp $@(#) All rights reserved@(#) Copyright 1988,1989,1990,1993,1994 by Paul VixieDecNovOctSepAugJulJunMayAprMarFebJanSatFriThuWedTueMonSunbittestmiscloadparsprocschextreplaceeditdeletelist???crontab: usage error: %s
       crontab [-u user] { -e | -l | -r }usage: crontab [-u user] file%s
%s
you (%s) are not allowed to use this programcrontab command not allowedAUTHȕЕؕyour UID isn't in the passwd file, bailing outu:lerx:bad debug optionmust be privileged to use -uuser `%s' unknownonly one operation permittedunrecognized optionno arguments permitted after this optionfile name must be specified for replace-swapping uidsr%sswapping uids backuser=%s, file=%s, option=%s
h@LISTtabs%s/%sno crontab for %slinenum=%d
DELETE"%s":%d: %s
BEGIN EDITno crontab for %s - using an empty one/dev/null/tmp/crontab.XXXXXXXXXXfchownwfdopenstatVISUALEDITOR/usr/bin/viforksetuid(getuid())/tmpchdir(/tmp)editor or filename too longwrong PID (%d != %d) from "%s""%s" exited with status %dno "%s" killed; signal %d (%score dumped)no changes made to crontabinstalling new crontabDo you want to retry the same edit? Enter Y or N
edits left in %spanic: bad switch() in replace_cmd()END EDITcannot allocate memorytmp.%dw+# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (%s installed on %-24.24s)
# (Cron version -- %s)
error while writing new crontab to %serrors in crontab file, can't installchownfcloseerror renaming %s to %sREPLACEcan't update mtime on spooldir %s$FreeBSD: src/usr.sbin/cron/lib/entry.c,v 1.9 1999/08/28 01:15:54 peter Exp $bad class namebad group namebad usernamebad time specifierbad commandbad day-of-weekbad monthbad day-of-monthbad hourbad minuteno errorload_entry()...about to eat comments
 	
rebootyearlyannuallymonthlyweeklydailymidnighthourlyload_entry()...about to parse numerics
load_entry()...about to parse username
 	load_entry()...got %s
daemonload_entry()...uid %d, gid %d
load_entry()...class %s
SHELL/bin/shSHELL=%sHOME=%sPATH/usr/bin:/binPATH=%sLOGNAME%s=%sUSERload_entry()...about to parse command

load_entry()...returning successfully
get_list()...entered
get_list()...exiting w/ %02x
get_range()...entering, exit won't show
get_num, compare(%s,%s)
set_element(?,%d,%d,%d)
$FreeBSD: src/usr.sbin/cron/lib/env.c,v 1.7 1999/08/28 01:15:55 peter Exp $
load_env, read <%s>
%[^ =] = %[^
#]load_env, not 2 fields (%d)
linenum=%d
%s=%sload_env, <%s> <%s> -> <%s>
$FreeBSD: src/usr.sbin/cron/lib/misc.c,v 1.8 1999/08/28 01:15:55 peter Exp $unrecognized debug flag <%s> <%s>
debug flags enabled: %s
seteuid/var/cron%s%s: created%s: mkdir'%s' is not a directory, bailing outcannot chdir(%s), bailing outtabs/var/run/%scron.pidr+can't open or create %s: %sDEATHCRON%dcan't lock %s, otherpid may be %d: %s%d
linenum=%d
rallowdenyallow/deny enabled, %d/%d
(%s) %s (%s)
log_it: (%s %d) %s (%s)
\%03o@~zvwlcRH8,<.>N^n~Ώޏ.>N^n~ΐސ.>N^n~Αޑ.>N^n~Βޒ.>N^n~Γޓl
p
pX(GCC: (GNU) 2.95.2 19991024 (release)GCC: (GNU) 2.95.2 19991024 (release)GCC: (GNU) 2.95.2 19991024 (release)GCC: (GNU) 2.95.2 19991024 (release)GCC: (GNU) 2.95.2 19991024 (release)GCC: (GNU) 2.95.2 19991024 (release)GCC: (GNU) 2.95.2 19991024 (release)01.0101.0101.0101.0101.0101.0101.01.symtab.strtab.shstrtab.interp.hash.dynsym.dynstr.rel.bss.rel.plt.init.plt.text.fini.rodata.data.ctors.dtors.got.dynamic.bss.comment.noteԀ#)1pp	9	XX(B	pKQV-\AbAk jPpPwP~PD<<RR@ R

SvT
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01aa01bfb632$612c3390$847e03cb>