X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Matthew Woehlke Subject: Re: Installing Cron on Windows 2003 Server... Date: Fri, 16 Mar 2007 09:50:36 -0500 Lines: 36 Message-ID: References: <45F9AB2D DOT 3090704 AT cygwin DOT com> <02f601c76749$1ab68030$9c0010ac AT wirelessworld DOT airvananet DOT com> <030e01c7674c$c63b29d0$9c0010ac AT wirelessworld DOT airvananet DOT com> <01ca01c767b4$bd346410$2e08a8c0 AT CAM DOT ARTIMI DOT COM> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/