-
Senior Member
registered user
"Cron" jobs? Questions/issues/errors...
Don't know much on this OS, but ever since I hard drive installed Knoppix, I've been getting root smail mail on a "cron" job, that appears to not have priviledges to do what it is doing, not sure how to view the job, what the job is, or why it is running...
Output from smail (root) mail:
Code:
You have new mail in /var/mail/root
root@Polaris:~# mail
Mail version 8.1.2 01/15/2001. Type ? for help.
"/var/mail/root": 1 message 1 new
>N 1 root@Knoppix Wed Apr 21 07:37 17/587 Anacron job 'cron.daily'
& t
Message 1:
From root@Knoppix Wed Apr 21 07:37:16 2004
Date: Wed, 21 Apr 2004 07:37:16 -0500 (CDT)
From: root@Knoppix (Anacron)
To: root@Knoppix
Subject: Anacron job 'cron.daily'
/etc/cron.daily/smail:
expr: warning: unportable BRE: `^uid=0(root)': using `^' as the first character
of the basic regular expression is not portable; it is being ignored
checkerr: ERROR: you must be root to do this!
&
I have been (just) typing the messages out, and then just deleting them, but would like to correct, or at least figure out what, why, where, the job is doing, and possibly correct the problem, if I can...
Anyone have clues, ideas? (I had a heck of a time just figuring out how to "get" to this mail, in the first place, now, I am trying to resolve it)
Thanks to anyone for "getting" me clued in on this,
Cuddles
-
Senior Member
registered user
Funny thing is, I see the exact same error on my mepis box.
It appears /etc/cron.daily/smail invokes /usr/lib/smail/checkerr
The offending line seems to be the 65th, where expr is indeed used.
If you have no smail daemon running (no link under /etc/rc?.d
to /etc/init.d/smail), you can probably simply comment out the
checkerr invocation from the crontab script.
Otherwise, replace the offending line
Code:
if expr "`id`" : '^uid=0(root)' >/dev/null ; then
with
Code:
if [ "`id -u`" == "0" ] ; then
Cheers,
--bald
Similar Threads
-
By locutus in forum MS Windows & New to Linux
Replies: 5
Last Post: 11-26-2004, 06:38 AM
-
By aaru_ali in forum General Support
Replies: 0
Last Post: 10-27-2004, 07:10 AM
-
Replies: 0
Last Post: 02-18-2004, 11:15 PM
-
By DaRacerz in forum Hardware & Booting
Replies: 3
Last Post: 07-19-2003, 08:55 PM
-
By Juny in forum General Support
Replies: 4
Last Post: 03-14-2003, 09:02 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Cisco UCSB-B200-M4 Blade Server 2 x E5-2690v3 12C 256GB RAM NO HDD/SSD
$175.00

Dell M620 Blade Server (2x E5-2630v2 @ 2.6GHz / 24x32GB RAM = 768GB Total)
$389.93

HP ProLiant BL460c Gen9 Blade 2x 2697Av4 2.6GHz =32 Cores 128GB P244BR 650FLB
$350.00

HP ProLiant BL460c Gen9 Blade 2x E5-2667v3 3.2GHz =16 Cores 256GB P244BR 650FLB
$328.00

Dell PowerEdge VRTX with 4x M630 Blade 8x E5-2620 V4 PERC8
$799.99

2 LOT Dell PowerEdge M620 Blade Server 0F9HJC Intel E5-2609 2.40GHz 16GB RAM
$74.99

Dell PowerEdge FX2 FX2s Server 10GbE CMC Blade Enclosure Chassis
$299.99

Dell XJ6VP PowerEdge FX2S 4 Slot Blade Chassis PEFX2S 2x Power Supply *No blades
$309.12

HPE ProLiant BL460 Gen10 CTO Blade Server-863442-B21 No RAM, HDD, CPU w/Heatsink
$180.00

HPE ProLiant BL460c Gen8 735151-B21 E5-v2 Blade Server LOADED w 512 GIGS MEMORY
$280.00