This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cron not working
From: Rajashekar Chintalapati <rajashekr@gmail.com>
Date: Sun, Mar 28, 2010 at 02:22:57PM -0800
> Hi,
> ? I am trying to run a simple script using crontab.
>
> $ more /cygdrive/c/list
> ls -ltr /cygdrive/c/ > /tmp/li.txt
>
> 2010/03/28 01:01:01 [SYSTEM] /usr/sbin/cron: PID 4068: (Administrator)
> CMD (/cygdrive/c/list > /tmp/error.log 2>&1)
>
>
> But after that not sure what went wrong, if i change the time, cron is
> not executing the /cygdrive/c/list.
>
Since you'r running Cygwin, I'd presume you want unix scripts.
In that case, a
#!/bin/sh
is missing at the top.
If you want a dos script, I'd suggest using DOS filenames, using \ as
separator.
Does that solve your problem?
Kind regards,
Jurriaan
--
"I learn more sometimes from questions I know the answers to."
Guy Gavriel Kay - A Song for Arbonne
--
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