Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/