delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/29/12:34:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Message-ID: <431338F0.4020904@adelphia.net>
Date: Mon, 29 Aug 2005 09:33:52 -0700
From: M Maki <mmaki AT adelphia DOT net>
User-Agent: Debian Thunderbird 1.0.2 (X11/20050331)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Alternative to Cron Jobs with cygrunserv

I was having a terrible time trying to get cron jobs running with
cygrunsrv on a Windows 2003 Server so I thought I would try the Windows
Scheduler Service.

First I created the bash shell script in cygwin I wanted to run (an
rsync backup) and made sure it worked on it's own.

I then created a Windows batch file that pipes the command I
want to run to the cygwin.bat file that starts cygwin.

For example:

@echo on
echo ./rsyncbkp.sh | C:\cygwin\cygwin.bat
echo exit | C:\cygwin\cygwin.bat

Save the above as a .bat file and use the Windows Scheduler to run it.

Hope this helps with those who have had trouble with cygrunsrv.

Mike



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019