delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/11/19/11:18:06

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <183c528b0711190817x1326ea66u4b30fe015b572573@mail.gmail.com>
Date: Mon, 19 Nov 2007 11:17:34 -0500
From: "Brian Mathis" <brian DOT mathis AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin.bat
In-Reply-To: <13839178.post@talk.nabble.com>
MIME-Version: 1.0
References: <13839178 DOT post AT talk DOT nabble DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

On Nov 19, 2007 11:01 AM, 123cu <fmk0203 AT charter DOT net> wrote:
>
> First, I am a newbee to Cygwin so please excuse my lack of knowledge.
>
> I have a text file (aaa.txt) which contains a simple grep command. When I
> start Cygwin.bat, I want this file to be started (executed) as part of
> invoking the cygwin.bat file. I don't know how to do it. Any help will be
> appreciated.
>
> cygwin.bat file
> @echo on
>
> C:
> chdir C:\cygwin\bin
> set HOME=\cygwin
> bash --login -i

cygwin.bat is typically used to start the cygwin environment, usually
by starting a bash shell.  The bash shell then runs some "startup"
scripts, like .bashrc and .bash_profile.  Those files are where you
would normally put anything that you want to run every time you start
a shell.

Based on your description, it sounds like you may be doing something
that might not fit with the idea of how cygwin works.  If you can
explain in more detail what you are trying to accomplish, we may be
able to find a better solution, or help you to integrate it better.

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