X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org X-Authority-Analysis: v=1.0 c=1 a=GP7x-uwC9AkA:10 a=wIP8iYpszRcfgps4mMwA:9 a=PdhLCu6MODE8fDk_6KMA:7 a=XfyQ7_jE4jvpAH3JrZe9KcTzcP8A:4 Message-ID: <4B81999C.6000800@charter.net> Date: Sun, 21 Feb 2010 15:37:48 -0500 From: BZT 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: Batch file code to launch rxvt pointed elsewhere than $HOME -- what's wrong with my code? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 I'm trying to write batch scripts of the kind that start a Cygwin session in rxvt from the desktop, with the added feature that the session starts in a folder other than $HOME. I want to do this for two folders I use often. I know urxvt has a -cd command, and thought rxvt in Cygwin did too. I tried this code > @echo off > > C: > chdir C:\cygwin\bin > > start rxvt -display :0 -sl 2500 -sr -tn rxvt-cygwin-native -geometry 80x25 -font "Bitstream Vera Sans Mono-14" -e /bin/bash --login -i -cd /cygdrive/c/blu/newest/ > > exit The results are that I see an RXVT window for about a blink or two, then nothing. With slight modifications (such as invoking a shell script -- tested and working otherwise -- to do the directory change for me), I'm getting "flashes" or "there-&-gones" by both the Command prompt and rxvt. I have only found one archived post on the mailing list where someone was trying to do exactly this thing. It was posted in the first half of 2009, if I remember correctly. No solution was posted to that thread. I find it hard to believe this isn't possible, or that such a thing as the "right combination" of batch and shell script code can't accomplish it. I'd have to be persuaded this was the case before I gave up altogether, with information and/or insights that drew upon the flaws of Cygwin or Windows or both in tandem. Hope someone can give this another look and offer advice. SJ Wright -- There are no guarantees in anything in software. Software is written by people, and people are flawed; therefore, software is flawed. When using one or another piece of software to accomplish a task, a good rule of thumb is, There are the same number of headaches, just different flavors. - Distillation of two observations made by my brother and me within the last decade -- 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