public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* "rxvt -e bash" From Batch File
@ 2006-02-08 17:10 Bubba Jones
  2006-02-08 17:36 ` Chris Taylor
  0 siblings, 1 reply; 8+ messages in thread
From: Bubba Jones @ 2006-02-08 17:10 UTC (permalink / raw)
  To: cygwin

When I envoke "rxvt -e bash" from a command line
I get rxvt with bash and bash sourced my .bashrc
file.  However, when I put "rxvt -e bash" in a
batch file, launch the batch file, I get rxvt
with bash, but my .bashrc file is not sourced...

Does anyone know why my batch file doesn't source
.bashrc and/or how I can get the batch file to
source?  I'm guessing I'm starting a login
bash session, but I'm not certain...

_________________________________________________________________Get your FREE Budweiser E-mail account at http://budweiser.com     Budweiser E-Mail must be used responsibly and only is for consumers 21 years of age and older!       Disclaimer: Neither Anheuser-Busch, Inc. (the makers of BUDWEISER beer) nor the operator of this E-Mail service or their respective affiliates have seen, endorsed or approved any of the content in this e-mail and expressly disclaim all liability for the content in whole and in part.

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

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: "rxvt -e bash" From Batch File
@ 2006-02-08 17:33 Hassel, Scott
  0 siblings, 0 replies; 8+ messages in thread
From: Hassel, Scott @ 2006-02-08 17:33 UTC (permalink / raw)
  To: Bubba Jones, cygwin


-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
Of Bubba Jones
Sent: Wednesday, February 08, 2006 12:07 PM
To: cygwin@cygwin.com
Subject: "rxvt -e bash" From Batch File


When I envoke "rxvt -e bash" from a command line

I get rxvt with bash and bash sourced my .bashrc

file.  However, when I put "rxvt -e bash" in a

batch file, launch the batch file, I get rxvt

with bash, but my .bashrc file is not sourced...



Does anyone know why my batch file doesn't source

.bashrc and/or how I can get the batch file to

source?  I'm guessing I'm starting a login

bash session, but I'm not certain...
-----END Original Message-----



Have you tried this:

set the dos/windows environment variable - SHELL=/usr/bin/bash

and then you should be able to execute

C:\cygwin\bin\rxvt.exe -bg black -fg grey -sl 2048 -sb -fn 9x16 -ls

or something similar. The -ls tells rxvt to treat it as a login shell. All the rest is just for looks.



Blue Cross Blue Shield of Florida, Inc., and its subsidiary and affiliate companies are not responsible for errors or omissions in this e-mail message. Any personal comments made in this e-mail do not reflect the views of Blue Cross Blue Shield of Florida, Inc.  The information contained in this document may be confidential and intended solely for the use of the individual or entity to whom it is addressed.  This document may contain material that is privileged or protected from disclosure under applicable law.  If you are not the intended recipient or the individual responsible for delivering to the intended recipient, please (1) be advised that any use, dissemination, forwarding, or copying of this document IS STRICTLY PROHIBITED; and (2) notify sender immediately by telephone and destroy the document. THANK YOU.



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

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE:
  2006-02-08 17:33 Hassel, Scott
@ 2006-02-08 17:49 Bubba Jones
  2006-02-08 17:59 ` "rxvt -e bash" From Batch File Bubba Jones
  -1 siblings, 1 reply; 8+ messages in thread
From: Bubba Jones @ 2006-02-08 17:49 UTC (permalink / raw)
  To: cygwin

On Wed, 8 Feb 2006 12:26:57 -0500 "Hassel, Scott" 
Scott.Hassel@bxxx> wrote:

> When I envoke "rxvt -e bash" from a command line
> I get rxvt with bash and bash sourced my .bashrc
> file.  However, when I put "rxvt -e bash" in a
> batch file, launch the batch file, I get rxvt
> with bash, but my .bashrc file is not sourced...
> 
> Does anyone know why my batch file doesn't source
> .bashrc and/or how I can get the batch file to
> source?  I'm guessing I'm starting a login
> bash session, but I'm not certain...
> -----END Original Message-----
> 
> 
> 
> Have you tried this:
> 
> set the dos/windows environment variable - 
SHELL=/usr/bin/bash
> 
> and then you should be able to execute
> 
> C:\cygwin\bin\rxvt.exe -bg black -fg grey -sl 2048 -sb 
-fn 9x16 -ls
> 
> or something similar. The -ls tells rxvt to treat it as 
a login shell. All the rest is just for looks.

That didn't work.  My environment variables might
be messed up.  When I call the regular cygwin bash
prompt from a batch file, I have the following in
the batch file:

C:\Cygwin\bin\bash --rcfile /cygdrive/h/.bashrc -i

That explicitly tells bash to source my .bashrc.
Does rxvt have anything like that?

_________________________________________________________________Get your FREE Budweiser E-mail account at http://budweiser.com     Budweiser E-Mail must be used responsibly and only is for consumers 21 years of age and older!       Disclaimer: Neither Anheuser-Busch, Inc. (the makers of BUDWEISER beer) nor the operator of this E-Mail service or their respective affiliates have seen, endorsed or approved any of the content in this e-mail and expressly disclaim all liability for the content in whole and in part.

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

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: "rxvt -e bash" From Batch File
@ 2006-02-08 18:59 Eric Blake
  2006-02-09 10:25 ` Chris Taylor
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Blake @ 2006-02-08 18:59 UTC (permalink / raw)
  To: Bubba Jones, cygwin

[You have a really weird mailer - every other line was blank!]

> On 8 Feb 2006 17:54:59 -0000 Bubba Jones 
> > I think I found the problem.  My $HOME variable is
> 
> > set to another location than I want.  Before using
> 
> > rxvt I explicitly set HOME in my .bashrc...  When
> 
> > I set HOME in the regular bash prompt and run
> 
> > "rxvt -e /bin/bash --login -i" all is well.  So, my
> 
> > problem now is, how do I set my HOME in a batch
> 
> > file?  If that can't be done, how can I set HOME
> 
> > before I call rxvt?

You can permanently edit environment variables in Windows using
control panel, system, advanced, environment variables.  Or for
a single use, you should try 'set /?' in a cmd.com window, for ideas
on setting environment variables in batch files.

See also http://cygwin.com/faq/faq-nochunks.html#faq.setup.home

--
Eric Blake

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-02-09 10:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-08 17:10 "rxvt -e bash" From Batch File Bubba Jones
2006-02-08 17:36 ` Chris Taylor
2006-02-08 17:58   ` Bubba Jones
2006-02-08 18:02     ` "rxvt -e bash" From Batch File Bubba Jones
2006-02-08 17:33 Hassel, Scott
2006-02-08 17:49 Bubba Jones
2006-02-08 17:59 ` "rxvt -e bash" From Batch File Bubba Jones
2006-02-08 18:59 Eric Blake
2006-02-09 10:25 ` Chris Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).