delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
To: | cygwin AT cygwin DOT com |
X-Injected-Via-Gmane: | http://gmane.org/ |
Path: | not-for-mail |
From: | Andrew DeFaria <Andrew AT DeFaria DOT com> |
Newsgroups: | gmane.os.cygwin |
Subject: | Re: installing cron on Win2K under cygwin |
Date: | Mon, 15 Apr 2002 21:39:47 -0700 |
Lines: | 45 |
Message-ID: | <3CBBAB13.9060903@DeFaria.com> |
References: | <3CBB6CE9 DOT 15238 DOT 5475180 AT localhost> |
NNTP-Posting-Host: | dsl-64-195-250-225.telocity.com |
Mime-Version: | 1.0 |
X-Trace: | main.gmane.org 1018931998 12960 64.195.250.225 (16 Apr 2002 04:39:58 GMT) |
X-Complaints-To: | usenet AT main DOT gmane DOT org |
NNTP-Posting-Date: | Tue, 16 Apr 2002 04:39:58 +0000 (UTC) |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 |
X-Accept-Language: | en,ru |
Leonard Jacobs wrote: > Is there a simple document that explains how to get cron working as a > service under cygwin? > > I have been perusing the list archives and see a consistent set of > questions dealing with the trials and tribulations of using > cron/crontab but cannot locate the basic help and configuration files. > I am familiar with cron on linux, but this version is not particularly > straightforward. > > Can cron run as a conventional Win2K service? I use the following: #!/bin/bash ################################################################################ # # File: setup_cron # Description: This script sets up Cygwin's cron on the local machine # Author: Andrew AT DeFaria DOT com # Created: Mon Apr 15 21:37:48 2002 # Language: Bash Shell # Modifications: # # (c) Copyright 2002, Andrew AT DeFaria DOT com, all rights reserved # ################################################################################ me=$(basename $0) # Make sure that certain directories and files do not exist! This is to let # cron create them, which appears to be the only way to get these created # correctly! if [ ! -d /var/cron ]; then rm -rf /var/cron rm -rf /var/run/cron.pid rm -rf /var/log/cron.log # Install cron service: cygrunsrv -I cron -p /usr/sbin/cron -a -D -d "Cygwin cron" -e \ "MAILTO=$USER@<domain>.com" -e "CYGWIN=ntsec" fi # Start cron service cygrunsrv -S cron -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |