delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/27/04:04:54

X-Spam-Check-By: sourceware.org
Date: Fri, 27 Jan 2006 09:32:51 +0100
From: Ismael Valladolid Torres <ivalladt AT punkass DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Calling shell script from DOS
Message-ID: <20060127083251.GA2732@spma33>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20060127062253 DOT 97104 DOT qmail AT web50102 DOT mail DOT yahoo DOT com> <014c01c6230b$2b5ac820$0a01a8c0 AT p42800e>
Mime-Version: 1.0
In-Reply-To: <014c01c6230b$2b5ac820$0a01a8c0@p42800e>
User-Agent: Mutt/1.4.2.1i
X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.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

--C7zPtVaVf+AK4Oqc
Content-Type: text/plain; charset=unknown-8bit
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

David Christensen escribe:
> 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.
>=20
> This is a batch file that I use to launch a Bash script that backs up my
> machines:
>=20
>     dpchrist AT p42800e:~/mydocuments/backup-p42800e$ cat backup-all.bat
>     @echo off
>=20
>     C:
>     chdir C:\cygwin\bin
>=20
>     bash /backup/bin/backup-all

Use bash -i or bash --login if you also want your .bashrc or your
.bash_profile to be sourced.

Cordially, Ismael
--=20
Tout fourmille de commentaries, d'auteurs il en est grande chert=E9

     http://lamediahostia.blogspot.com/
     http://www.flickr.com/photos/ivalladt/

--C7zPtVaVf+AK4Oqc
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3-cvs (Cygwin)

iD8DBQFD2dqz59Nokt5yGvQRArYwAKCFCANB48QPWCxaQ+mwX0gMbyA5nQCg1/6N
SHEAHpmSP12VDlo1x2X4u7Q=
=GNq7
-----END PGP SIGNATURE-----

--C7zPtVaVf+AK4Oqc--

- Raw text -


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