Results 1 to 2 of 2

Thread: "Cron" jobs? Questions/issues/errors...

  1. #1
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Salt Lake City, UT, U.S.A.
    Posts
    1,338

    "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

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    555
    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

  1. spreading Knoppix due to MS Windows "issues"
    By locutus in forum MS Windows & New to Linux
    Replies: 5
    Last Post: 11-26-2004, 06:38 AM
  2. knoppix3.6.."cloop:read errors"..
    By aaru_ali in forum General Support
    Replies: 0
    Last Post: 10-27-2004, 07:10 AM
  3. Replies: 0
    Last Post: 02-18-2004, 11:15 PM
  4. "Dual"/Two Joysticks Loading Issues
    By DaRacerz in forum Hardware & Booting
    Replies: 3
    Last Post: 07-19-2003, 08:55 PM
  5. Locate Knoppix "group" in "K" menu
    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
  •  


Dell R640 8x 2.5

Dell R640 8x 2.5" SFF iDRAC 2x 25GbE SFP28- Wholesale Custom Build Your Server

$303.99



Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD picture

Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD

$263.99



Dell R640 8x 2.5

Dell R640 8x 2.5" SFF Server iDRAC - Wholesale Custom Build Your Server

$280.99



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores  32gb  180GB SSD  495w picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores 32gb 180GB SSD 495w

$169.99



Dell PowerEdge R620 (2x) E5-2650 2.0Ghz 32GB RAM 256GB HDD- NO OS picture

Dell PowerEdge R620 (2x) E5-2650 2.0Ghz 32GB RAM 256GB HDD- NO OS

$65.00



Dell PowerEdge R630 Server 2x E5-2697v3 2.60Ghz 28-Core 128GB H730P Rails picture

Dell PowerEdge R630 Server 2x E5-2697v3 2.60Ghz 28-Core 128GB H730P Rails

$295.00



Dell PowerEdge R730 3.5 8 Bay w Trays 128Gb RAM 2x12c CPUs 80GbSSD/2x4Tb Proxmox picture

Dell PowerEdge R730 3.5 8 Bay w Trays 128Gb RAM 2x12c CPUs 80GbSSD/2x4Tb Proxmox

$420.00



DELL POWEREDGE R320 Dell PowerEdge R320 Server Barebones picture

DELL POWEREDGE R320 Dell PowerEdge R320 Server Barebones

$65.00



Dell Poweredge R720xd 2x Xeon E5-2680 v2 2.8GHz 20-Cores  512GB  H710  26x Trays picture

Dell Poweredge R720xd 2x Xeon E5-2680 v2 2.8GHz 20-Cores 512GB H710 26x Trays

$379.99



Dell Poweredge R620 2x E5-2670 2.6ghz 16-Cores / 32gb / H710 / 2x Trays / 750w picture

Dell Poweredge R620 2x E5-2670 2.6ghz 16-Cores / 32gb / H710 / 2x Trays / 750w

$134.99