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: cron.hourly


Totte Karlsson wrote:
> Hi,
> I have started cron as a service under Windows 2000. I
> 'naively' created a directory, /etc/cron.hourly and put a
> script in there. I had hoped that cron would execute the
> script once every hour but it does not work.
> 
> How do I get the folders /etc/cron.hourly, etc/cron.daily
> etc/cron.weekly correctly working in cygwin? regards -totte

$ cat exampleCronFile 
#*     *   *   *    *  command to be executed
#-     -   -   -    -
#|     |   |   |    |
#|     |   |   |    +----- day of week (1 - 7) (monday = 1)
#|     |   |   +------- month (1 - 12)
#|     |   +--------- day of month (1 - 31)
#|     +----------- hour (0 - 23)
#+------------- min (0 - 59)

05    15   5   2    *  /path/to/executable >/path/to/logfile



will execute the executable at 3:15 PM on the 5th of the second month
and it doesn't care which day of the week that is.


reid

--
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]