This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Need advice regarding cron---unable to start cron
- From: "Pierre A. Humblet" <Pierre dot Humblet at ieee dot org>
- To: Ravindra Divi <cthoma29 at yahoo dot com>,cygwin at cygwin dot com
- Date: Sat, 12 Jun 2010 13:26:10 -0400
- Subject: Re: Need advice regarding cron---unable to start cron
- References: <111881.96879.qm@web45308.mail.sp1.yahoo.com>
At 07:50 AM 6/12/2010, Ravindra Divi wrote:
Hi,
I installed cygwin on windows server 2003 and am trying to learn
about cron.
I created a simple script as follows:
#!/usr/bin/bash
#move the file every 1 min
echo 'date'>> datelog.txt
mv datelog.txt outbound
I then created a crontab using the command crontab -e as follows:
<snip>
but nothing is happening. I was able to successfully run the script
manually. But when trying to accomplish it through cron, nothing
happens. I checked the services in start -->administrative
tools-->services and I see cron Daemon running. I dont see anything
in logs either.Please advise.
Did you use cron-config to start cron?
I see the cron daemon is running under the Local System account,
which on server 2003
is only possible in some cases. This is explained in
/usr/share/doc/Cygwin/cron-X.README,
in cron-config and in the Cygwin doc (about setuid).
The doc also recommends running cronbug and sending the output as an
attachment.
Pierre
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple