Problem is (bad minute) error
I get an email from server log each morning. This is being reported (see below). Below that is the refresh.apf file. What is my problem. Thanks.
**Unmatched Entries** Mar 19 04:03:01 server crond[24531]: CRON: error in (/etc/cron.d/refresh.apf) problem is (bad minute) refresh.apf file is below MAILTO= SHELL=/bin/sh */10 * * * * root /etc/apf/apf --refresh >> /dev/null 2>&1 & |
Distro?
Version? Have you tried using 00,10,20,30,40,50 for the minutes instead? |
Hi,
Is /etc/cron.d/refresh.apf a normal (Linux) text file or a windows generated text file? Post the output of: Code:
file /etc/cron.d/refresh.apf |
TenTenths, Red Hat Enterprise Linux Server release 5.2 (Tikanga).
No, but I will try that. Thanks for your reply. druuna, the file contents are in my first post. Thanks. |
Hi,
Quote:
Execute this from the command line and post the output: file /etc/cron.d/refresh.apf |
druuna, here it it.
/etc/cron.d/refresh.apf: symbolic link to `/etc/apf/internals/cron.refresh' |
Hi,
Quote:
Code:
file /etc/apf/internals/cron.refresh |
/etc/apf/internals/cron.refresh: ASCII text
|
Hi,
Quote:
Can you post the output (between [code] [/code] tags) of the following command: Code:
od -c /etc/apf/internals/cron.refresh |
[root@server ~]# od -c /etc/apf/internals/cron.refresh
0000000 M A I L T O = \n S H E L L = / b 0000020 i n / s h \n * / 1 0 * * * 0000040 * r o o t / e t c / a p f 0000060 / a p f - - r e f r e s h > 0000100 > / d e v / n u l l 2 > & 1 0000120 & \n 0000123 |
Please put your script/data inside [code] ... [/code] tags it preserves all spacing. If you don't know how: LQ - BB Code List.
|
I am also seeing the same thing in my logs. Did you find a fix for this?
Also, I don't understand the use of "root" in the cron entry: */10 * * * * root /etc/apf/apf --refresh >> /dev/null 2>&1 & I thought the syntax should be {5 fields for time} {command}. So what does the "root" entry do there? If I remove "root", the format would match what I expect it to match. thanks for any tips, |
For system (root) level cron files, you have the option to specify the user to run the job as.
Of course if that's the same user as the job owner, it would be redundant, unless the cmd-to-run has setuid bit set on. |
Interesting, thanks for letting me know.
If anyone figures out the cause for this error, or has additional tips on how to figure it out, would be great to hear. thanks, |
Delete:
Code:
MAILTO= |
All times are GMT -5. The time now is 06:29 AM. |