delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/18/14:38:43

X-Spam-Check-By: sourceware.org
From: "Herman Poon" <poonh AT mcmaster DOT ca>
Subject: cron - Application Event Log
To: cygwin AT cygwin DOT com
Date: Wed, 18 Jan 2006 14:38:28 -0500
Message-ID: <web-115144259@cgpsrv2.cis.mcmaster.ca>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi,

I would like to suppress logging of tasks by cron in the Windows
Application Event log. I want to schedule a task that runs frequently
but do not want the Event log to quickly grow.

I did search the Cygwin mailing list archive and found this:
http://sourceware.org/ml/cygwin/2004-10/msg01333.html

I found that the -1 and -2 switches create String values "StdOut" and
"StdErr" for the Parameters key of the cron service in the registry. It
would appear that any output should be logged to /var/log/cron.log.

Unfortunately, this does not seem to work and every time a task runs in
cron, an entry is added to the Application Event log. The cron.log file
itself only shows lines similar to the following:
[2252] cron started

The cron.log file doesn't contain anything else, just the pid and the
"started" line (when cron is stopped it doesn't log anything to
cron.log). I did stop/restart cron just to see if the settings would
take effect, but this didn't work either.

I'm hoping that somebody has some suggestions for me. Thank you,

Herman

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019