Re: rxvt -e bash From Batch File

2006-02-09 Thread Chris Taylor

Eric Blake wrote:

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


On 8 Feb 2006 17:54:59 - 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



Alternatively, you could do:
rxvt -e /bin/bash --login --rcfile /cygdrive/h/.bashrc -i

Thus combining your current configuration with the way you want it to be...



Chris
--

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?

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



rxvt -e bash From Batch File

2006-02-08 Thread Bubba Jones
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/



RE: rxvt -e bash From Batch File

2006-02-08 Thread Hassel, Scott

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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/



Re: rxvt -e bash From Batch File

2006-02-08 Thread Chris Taylor

Bubba Jones 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...



Try using rxvt -e /bin/bash --login -i
You can specify all manner of things there as well..
EG: black bg and green text: -fg Green -bg Black

HTH

Chris

--

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?

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



Re: rxvt -e bash From Batch File

2006-02-08 Thread Bubba Jones
On 8 Feb 2006 17:45:34 - Bubba Jones 

[EMAIL PROTECTED] wrote:

 On Wed, 8 Feb 2006 12:26:57 -0500 Hassel, Scott 

 [EMAIL PROTECTED] 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?



I noticed the subject line got goofed.  This is a

repost...

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



Re: rxvt -e bash From Batch File

2006-02-08 Thread Bubba Jones
On 8 Feb 2006 17:54:59 - Bubba Jones 

[EMAIL PROTECTED] wrote:

 On Wed, 08 Feb 2006 17:35:30 + Chris Taylor

 [EMAIL PROTECTED] wrote:

 

  Try using rxvt -e /bin/bash --login -i

  You can specify all manner of things there as well..

  EG: black bg and green text: -fg Green -bg Black

 

 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?

 

 H...



I noticed the subject line was goofed.  This is a

repost...

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