Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
content-class: urn:content-classes:message
Subject: RE: scheduling jobs
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-Ascii"
X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0
Date: Wed, 23 Oct 2002 21:24:30 +0100
Message-ID: <C411A4A355498B4AB3652085E57A92596D8326@EXCHANGE.wincoll.ac.uk>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
From: "Gen Zhang" <g_zhang@wincoll.ac.uk>
To: <cygwin@cygwin.com>
Cc: "Karen McLaughlin" <k.mclaughlin@umassp.edu>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g9NKRCc00901

> 1) can i use windows nt to access the bash job and how ...
> I tried the following and got the following errors
> 
> C:\jobs>e:\cygwin\bin\bash -c e:/cygwin/jobs/umassonline_log_rotate.sh
> date: not found
> date: not found
> date: not found
> cp: not found
> date: not found
> cp: not found
> C:\jobs>date
> 
> added #!/bin/bash to top of shell script
> C:\jobs>e:\cygwin\bin\bash -c e:/cygwin/jobs/umassonline_log_rotate.sh
> e:/cygwin/jobs/umassonline_log_rotate.sh: date: command not found
> e:/cygwin/jobs/umassonline_log_rotate.sh: date: command not found
> e:/cygwin/jobs/umassonline_log_rotate.sh: date: command not found
> e:/cygwin/jobs/umassonline_log_rotate.sh: cp: command not found
> e:/cygwin/jobs/umassonline_log_rotate.sh: date: command not found
> e:/cygwin/jobs/umassonline_log_rotate.sh: cp: command not found
> C:\jobs>umassonline_rotate_logs.bat
> 
> 2) if not --- i probably need cron?
> to add this to the current setup without messing up anything the boss
> installed -- do i run setup again? or something else ..

Try adding --login to the bash command. Try also -i. The roughly
equivalent command to cron in nt is at. Type in help at at the cmd.

Hope this helps.

Genneth

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

