This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Installing Cron on Windows 2003 Server...


----- Original Message ----- 
From: "Kevin Markle" 
To: <cygwin>
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: <cygwin>
| > 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]