delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/27/01:30:26

X-Spam-Check-By: sourceware.org
From: "David Christensen" <dpchrist AT holgerdanske DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Calling shell script from DOS
Date: Thu, 26 Jan 2006 22:30:30 -0800
Message-ID: <014c01c6230b$2b5ac820$0a01a8c0@p42800e>
MIME-Version: 1.0
In-Reply-To: <20060127062253.97104.qmail@web50102.mail.yahoo.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Pinaki Mukherjee wrote:
> I have installed Cygwin. I want to invoke a shell
> script from the DOS/Windows command prompt (instead of
> opening Cygwin Window first and calling it from
> there). How can I do this?
> Thanks for any help.

This is a batch file that I use to launch a Bash script that backs up my
machines:

    dpchrist AT p42800e:~/mydocuments/backup-p42800e$ cat backup-all.bat
    @echo off

    C:
    chdir C:\cygwin\bin

    bash /backup/bin/backup-all


HTH,

David


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