X-Spam-Check-By: sourceware.org Date: Thu, 15 Mar 2007 17:56:23 -0400 From: "Pierre A. Humblet" Subject: Re: Installing Cron on Windows 2003 Server... To: , Message-id: <030e01c7674c$c63b29d0$9c0010ac@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: <45F9AB2D DOT 3090704 AT cygwin DOT com> <02f601c76749$1ab68030$9c0010ac 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: Thursday, March 15, 2007 5:43 PM Subject: Re: Installing Cron on Windows 2003 Server... | Pierre A. Humblet pretended : | > ----- Original Message ----- | > From: "Kevin Markle" | > To: | > Sent: Thursday, March 15, 2007 4:45 PM | > Subject: Re: Installing Cron on Windows 2003 Server... | > | > | >> Larry Hall (Cygwin) explained on 3/15/2007 : | >>> Kevin Markle wrote: | >>>> Hello, | >>>> | >>>> I'm attempting to install cron on a Windows 2003 machine and am somewhat | >>>> Unix challanged. Is there a documented procedure that works somewhere. It | >>>> seems that there are tons of posts out relating to this but they all seem | >>>> to offer different information. :o) I was wondering if anybody has had any | >>>> luck actually getting cron to work on a w3k machine. If possible I would | >>>> like to run the service with a Network login if not a local admin would | >>>> work... | >>> | >>> /usr/share/doc/Cygwin/cron.README | >> | >> I used that and it worked I have installed the service as a network | >> user | logged in as that user and created this crontab file but it | >> doesn't run. The file runs okay from command prompt but not from the | >> crontab file? | > | > I assume you used cron-config | > Does "ps -a" show cron running, and as the privileged user you created? | > How do you know the file doesn't run? | > | >> | >> 1 * * * * /time.bash > /dev/null 2>&1 | >> | >> In my reading I gathered that this was a way to get around intalling a | >> mail client. | > | > It's surely safer to just put | > MAILTO="" | > in your cron file | > | > Pierre | | I put the entry in the top of the file but still it doesn't work.. 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 Pierre ~: cd / /: cat > cronmail.sh cat > /cronmail.txt /: chmod a+rx /cronmail.sh /: cd /usr/sbin /usr/sbin: ln -sf /cronmail.sh sendmail -- 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/