#!/bin/bash ################################################################################ # # File: $RCSfile: setup_cron,v $ # Revision: $Revision: 1.2 $ # Description: This script sets up Cygwin's cron on the local machine # Author: Andrew@DeFaria.com # Created: Somewhere in 2003 or so... # Modified: $Date: 2010/06/08 15:03:27 $ # Language: Bash # # (c) Copyright 2002, ClearSCM, Inc., 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@Salira.com" -e "CYGWIN=ntsec" fi # Start cron service cygrunsrv -S cron