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 X-Authentication-Warning: typhoon.ocis.temple.edu: stan owned process doing -bs Date: Tue, 5 Nov 2002 17:07:50 -0500 (EST) From: Stan Horwitz X-X-Sender: To: Subject: How to schedule scripts Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hello all; I am new to Cygwin and I searched through the www.cygwin.com web site, but I found nothing that explains how to schedule scripts written under Perl in the Cygwin environment on a Windows 2000 Advanced Server system. In my effort to migrate some Perl scripts from a Unix system to this particular Windows server, I wrote a Perl script that works fine when I run it as Administrator in a Cygwin window with the default shell environment. This script generates a text file that contains a report. This script then moves the output report file into this Windows server's mail distribution directory where it is then successfully emailed. No interactive output is generated by this script. The file containing this script is called "daily.pl". Now, I want to schedule this script to run once a day as Administrator. With that in mind, I created a request under Windows' Task scheduler, but when the scheduled time occurred, a Cygwin shell window opened up, but nothing else happens. The request I scheduled was "cygwin daily.pl; exit" but the "daily.pl" script never executes; nor does "exit". As such, I end up with a Window to a Cygwin shell on my screen. Before posting this message, I searched through this list's archives for information about this particular problem, but I came up empty-handed. -- 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/