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" To: cygwin AT cygwin DOT com Subject: Re: cygwin.bat In-Reply-To: <13839178.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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/