delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/22/13:44:35

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-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <ADeFaria AT Salira DOT com>
Subject: Re: Calling bash shell from W2K batch script
Date: Wed, 22 Oct 2003 10:44:09 -0700
Lines: 15
Message-ID: <bn6fl9$rfs$1@sea.gmane.org>
References: <4FF77D01E13B214590F4FA3E2C3021D0419602 AT pecos DOT csw DOT alewife DOT net>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
In-Reply-To: <4FF77D01E13B214590F4FA3E2C3021D0419602@pecos.csw.alewife.net>
Note-from-DJ: This may be spam

Jared Ingersoll wrote:

>Hi,
>
>I was wondering if someone could provide the syntax for calling a cygwin shell script from the Windows 2000 cmd prompt. I'm trying to do something like this:
>
>d:\>start c:\cygwin\bin\bash -c "./script1.sh"
>
>But it doesn't seem to be working quite right, some pipes and such don't work and I can't execute a command in the script like > file.`date +%Y%m%d`. What I'm trying to do is write a cygwin script to execute some mixed NT commands and unix commands to check some network stuff, move around some files etc. The reason I want to do it this way is to use windows task scheduler to automate the task on a nightly bases.
>
Alternative: Use cron!
-- 
The other day I was playing poker with Tarot cards. I got a full house 
and four people died.



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