Results 1 to 2 of 2

Thread: Crontab ignores the dash (no log) for system tabs.

  1. #1
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Crontab ignores the dash (no log) for system tabs.


    This worked in 11.4

    Code:
    /etc/cron.d/mine:
    -3,8,13,18,23,28,33,38,43,48,53,58 * * * * news /var/lib/news/bin/cronscriptparanovell
    The files there are run by root, so this should apply:


    If the uid of the owner is 0 (root), he can put a "-" as first charac-
    ter of a crontab entry. This will prevent cron from writing a syslog
    message about this command getting executed.

    and indeed in 11.4 it worked, but not in 12.1, I get spammed in syslog:

    Code:
    
    > <9.6> 2012-08-19 22:50:01 Telcontar  7851 - -  (news) CMD (/var/lib/news/bin/cronscriptparanovell)

    The only alternative I can think is add a filter in rsyslog to remove them.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Crontab ignores the dash (no log) for system tabs.

    On 2012-08-19 22:58, Carlos E. R. wrote:
    >
    > This worked in 11.4


    I found the problem. I had a duplicate entry in "/var/spool/cron/tabs/news" which had been
    unintentionally restored from a previous backup.


    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •