delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Matthew Woehlke <mw_triad AT users DOT sourceforge DOT net> |
Subject: | Re: Installing Cron on Windows 2003 Server... |
Date: | Fri, 16 Mar 2007 09:50:36 -0500 |
Lines: | 36 |
Message-ID: | <etears$ole$2@sea.gmane.org> |
References: | <mn DOT 7bb77d7398948eea DOT 51129 AT pbs DOT org> <45F9AB2D DOT 3090704 AT cygwin DOT com> <mn DOT 7bed7d7353a3a7ee DOT 51129 AT pbs DOT org> <02f601c76749$1ab68030$9c0010ac AT wirelessworld DOT airvananet DOT com> <mn DOT 7c277d73fb146edb DOT 51129 AT pbs DOT org> <030e01c7674c$c63b29d0$9c0010ac AT wirelessworld DOT airvananet DOT com> <etcg7r$hvh$1 AT sea DOT gmane DOT org> <01ca01c767b4$bd346410$2e08a8c0 AT CAM DOT ARTIMI DOT COM> |
Mime-Version: | 1.0 |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.0 |
In-Reply-To: | <01ca01c767b4$bd346410$2e08a8c0@CAM.ARTIMI.COM> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
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 |
Dave Korn wrote: > On 15 March 2007 22:10, Matthew Woehlke wrote: > >> Pierre A. Humblet wrote: >>> It's working because we know it's trying to mail you something. >>> To find out what, remove MAILTO="" and install a poor man's mailer as >>> follows. It will write the mail output to /cronmail.txt >>> >>> ~: cd / >>> /: cat > cronmail.sh >>> cat > /cronmail.txt >> (NOTE: type CTRL-C after typing the above line) > > Ctrl+D is a better way to close the file actually. If you mean EOF, why not > *say* EOF? :-) ...because CTRL-D doesn't work on all platforms, and I was too lazy to check if it did on Cygwin. :-) >> ...and shouldn't that be 'cat >> ...' instead of 'cat > ...'? > > Well, the difference would be whether you (or in this case, Kevin) want(s) > all the 'mails' to get appended to an ever-growing cronmail.txt, or want each > new 'mail' to overwrite the previous one. For cron jobs, you often do only > care about the results from the most recent run. > > Think of it as a very simple form of logfile rotation! I was thinking if there was more than one job, you never see the logs from one of them. :-) So I guess the right answer to this is situational. -- Matthew "Have you tried that new mixed drink, 'GDR'"? "What is it?" "Gin, Duck and Rum. It tastes fowl." -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |