delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/21/22:28:47

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
X-Authority-Analysis: v=1.0 c=1 a=bp7pUXD8XzQA:10 a=tHICteYm-G1lAR80DHAA:9 a=Wnvrh6EK6VHTCXSQslMA:7 a=WofE1_bc97CrHn0wl7UHnZ3jNnUA:4
Message-ID: <4B81F9E4.80106@charter.net>
Date: Sun, 21 Feb 2010 22:28:36 -0500
From: SJ Wright <sjwright68 AT charter DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Batch file code to launch rxvt pointed elsewhere than $HOME -- what's wrong with my code?
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Andy, all:

This command, executed from a batch file, works right off the bat.

> C:\cygwin\bin\rxvt.exe -display :0 -fn "Lucida Console-14" -tn rxvt 
> -sl 8000 -cd "/cygdrive/c/blu/newest" -e /usr/bin/bash -c 
> "STARTDIR=\"$PWD\" exec /bin/bash --login"
I thought all I'd have to add were the "-geometry" and "-font" options 
as I had them in the original batch file. After trying the command twice 
and each time getting a message in Command Prompt such as *rxvt: could 
not load Lucida Console-14*, I figured it was looking in the Windows 
font folder instead of the X11 one. When I added the "-display :0" 
option, and the rxvt window came up with the right font, size, welcome 
message and in the right directory, I knew I had clinched it.

So I took it to the next step: making the batch file. One long line of 
code even looks better than three, especially when it works. And this did.

I changed the double-quoted path to point to the other directory for 
which I wanted one of these custom batch files, saved, double-clicked, 
and it worked as well as the first one.

This should be somehow made an "interesting extra method" somewhere in 
the User Guide, in my opinion. I don't doubt both new Cygwin users as 
well as old hands will want to know how to do it.

Thanks again for all the help.

SJ Wright
-- 
The evolution of email: 1979 - A miracle   1989 - A useful tool   1999 - 
Still cheaper than postage   2009 - A pain in the a**!
If you can read this, you're too close to the screen.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019