X-Spam-Check-By: sourceware.org Date: Mon, 16 Apr 2007 18:27:03 -0400 From: "Pierre A. Humblet" Subject: Re: crontab not sending output to me? To: , Message-id: <006701c78076$5c777f60$3c0110ac@wirelessworld.airvananet.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook Express 6.00.2900.2869 Content-type: text/plain; charset=iso-8859-15 Content-transfer-encoding: 7bit References: <03a301c77e16$ae86d240$3c0110ac AT wirelessworld DOT airvananet DOT com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 ----- Original Message ----- From: "Kevin Markle" <> To: Sent: Monday, April 16, 2007 4:02 PM Subject: Re: crontab not sending output to me? | Pierre A. Humblet wrote on 4/13/2007 : | > ----- Original Message ----- | > From: "Kevin Markle" <> | > To: <> | > Sent: Friday, April 13, 2007 3:55 PM | > Subject: crontab not sending output to me? | > | > | >> Hello, | >> | >> I'm running this crontab. When I run /cygdrive/e/wsus/run_all_groups.sh | >> from a command line it works but when I run it from cron I get no | >> content in the email I recive. | >> | >> My Crontab: | >> MAILTO="" | > | > Given that MAILTO="", you should not receive an e-mail. So that answers | > the Subject of your e-mail. However the body suggests that you receive | > some e-mail from cron, which is strange. | > | > Could you clarify what the problem is, tell us if cron is running (ps -a | > shows it), provide any useful info from the Windows event log and | > /var/log/cron.log as well as the output of 'cygcheck -srv > cygcheck.txt' as | > an attachment. | > | > If you remove MAILTO="", cron will attempt to send you the output through | > /usr/sbin/sendmail. What does that point to? If it points to | > /usr/bin/cronlog, the output should appear in HOME/cron.log, or in case of | > error there should be temporary files in /tmp. | > | > Pierre (going away until Monday). | | Hello, | | I use a Windows email program to send email from the script I have | written. When I run the script from a shell prompt it runs fine and | sends email to be but when I run it from cron I get a email but text in | the body. You mean NO text in the body. So you are bypassing cron's design to handle e-mail and you are relying on your script invoking a Windows mailer in order to get the mail. We know cron runs the script because you get the empty e-mail, but with the information you provide I doubt you will get precise help about why the script doesn't work as you wish (network drives or PATH issues are possibilities). Make sure that error output from your script is sent to the Windows mailer (test that from the command line). If you want to get more help, install and configure a Cygwin solution to send mail from cron, e.g. ssmtp. Pierre -- 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/