delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/25/22:48:50

X-Spam-Check-By: sourceware.org
Message-ID: <45402202.2020008@cygwin.com>
Date: Wed, 25 Oct 2006 22:48:34 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060916 Fedora/1.5.0.7-1.fc4.remi Thunderbird/1.5.0.7 Mnenhy/0.7.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Running a command on cygwin launch
References: <93f080740610250046u1bdc0ff0vc62fff2a7d9b71a AT mail DOT gmail DOT com> <453F848A DOT 3070503 AT cygwin DOT com> <195b3f1f0610251906y299e2136ob5317c6df8eb19fd AT mail DOT gmail DOT com>
In-Reply-To: <195b3f1f0610251906y299e2136ob5317c6df8eb19fd@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

<http://cygwin.com/acronyms/#TOFU>.  Reformatted.

Wynfield Henman wrote:
> On 10/26/06, Larry Hall (Cygwin) <reply-to-list-only-lh <AT> cygwin <DOT> com> wrote:
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Don't feed the spammers.
Thanks.


>> Ben LeBar wrote:
>> > Hi,
>> >
>> > I was wondering if there was any way to run a command on cygwin either
>> > through a batch file while launching cygwin or once launched.
>> >
>> > I heard that I could use a .batchrc file to do this, so I created one
>> > containing the command I wanted executed and put it in my home
>> > directory - it didn't work. Next I checked the Cygwin FAQ's and it
>> > said that a home directory may not have been set so put it in the
>> > cygwin root. I did this and tried it again -- no dice.
>> >
>> > If anyone could help me out or give me any alternatives I'd greatly
>> > appreciate it. Thanks.
>>
>>
>> If you're running Cygwin's bash prompt via cygwin.bat, you can add
>> whatever "batch" commands you want to that.  If you're looking to
>> add some shell commands, you can do so in your .bash_login or .bashrc
>> file, depending on your intent.  See 'man bash' for details.
>>
 > Larry,
 >  at the prompt type:   echo $HOME
 >
 > then put the BASH comnmands you want to be executed in the
 > $HOME/.bash_profile   file.  If there isn't one, make one ( a plain
 > text file with /n line endings).
 >
 > Normally this is were you set enviroment variables, etc.
 >
 > Cheers.
 >

Actually, I think we were both a little late answering this one, since it
was already answered even by the time that I responded.  You responded to
my response. ;-)  I think you wanted to address Ben.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

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