delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/05/17:08:08

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
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 <stan AT temple DOT edu>
X-X-Sender: <stan AT typhoon DOT ocis DOT temple DOT edu>
To: <cygwin AT cygwin DOT com>
Subject: How to schedule scripts
Message-ID: <Pine.OSF.4.32.0211051644100.25997-100000@typhoon.ocis.temple.edu>
MIME-Version: 1.0

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/

- Raw text -


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