Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Wed, 10 Jul 2002 09:49:06 -0400 From: Jon LaBadie To: cygwin AT cygwin DOT com Subject: cygwin.bat suggestions Message-ID: <20020710134906.GA8942@butch.jgcomp.com> Mail-Followup-To: Jon LaBadie , cygwin AT cygwin DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i On Wed, Jul 10, 2002 at 12:06:09PM +0100, David Starks-Browning wrote: > On Tuesday 9 Jul 02, Dantin writes: > > How do I use rxvt in conjuction with the cygwin do I need a switch for > > the batch file? If so what would that switch be? Or do I need to modify the > > batch file itself? > > If you search the email archives you should find numerous examples of > how people invoke rxvt. I use a shortcut as follows: > > C:\cygwin\bin\rxvt.exe -e bash --login I'm looking for sample cygwin.bat files. I tried a search of the archives, what a mistake, information overload. But after scanning several hundred messages, no samples. One thing I would like is to have a single cygwin.bat service multiple users with different shell preferences. Currently I'm forcing ksh as follows: $ cat /cygwin.bat @echo off C: chdir \cygwin\bin set SHELL=/bin/ksh rxvt --loginShell -geometry 108x32 -fn 10x20 -sr +ut One thing I would like to do is replace "set SHELL=/bin/ksh" with SHELL=$(grep "^${USER}:" /etc/passwd | cut -d: -f7) : ${SHELL:=/bin/ksh} Of course, that is shell programming, not windows batch file programming. I'm good at the former, not the latter :( Any suggestion for picking up the shell preference of the user invoking the cygwin.bat file? -- Jon H. LaBadie jcyg AT jgcomp DOT com JG Computing 4455 Province Line Road (609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/