delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/21/13:44:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Wed, 21 Apr 2004 13:42:16 EDT
To: cygwin AT cygwin DOT com
Subject: Interesting hang when running login from cygwin.bat
Message-Id: <VA.00000f4f.007d091c@thesoftwaresource.com>
From: Brian Keener <bkeenerReMoVeAnTiSpAm AT thesoftwaresource DOT com>
Reply-To: Brian Keener <bkeenerReMoVeAnTiSpAm AT thesoftwaresource DOT com>

I have my cygwin.bat on my W2k Laptop set to start two sessions of cygwin and 
being used to the Unix type login prompt you have to log into each session 
(really just ot see if I could do it).  My cygwin.bat looks like the following:

@echo off
SET MAKE_MODE=unix
SET CYGWIN=binmode ntsec nostrip_title title tty
SET PATH=d:\cygwin\usr\local\bin;d:\cygwin\usr\bin;d:\cygwin\bin;%PATH%;.
D:
chdir \cygwin

start CMD /c bin\rxvt -geometry 90x30 -fg grey -bg midnightblue -cr red -sr -sl
2000 -fn "Lucida Console-12" -tn rxvt -e /usr/bin/login

pause press return to login

start /B CMD /c bin\login.exe -p

exit

Note the pause where I have to hit return to login.  If I remove this line - 
and then run the above cygwin.bat I will be able to log into the screen using 
rxvt without a problem but the second line that just simply runs login will go 
appear to start to login but will appear to get hung in bash. I say it gets 
hung in bash because that is the last entry in the title bar of that window.  I 
will then have to kill that window using the close box.  If I then rerun the 
cygwin.bat a second time - it will work perfectly but not always consistently.  

If I leave the pause in there - it works perfect everytime.  I really do not 
understand why the difference.  Anyone have any ideas what I might be doing 
wrong or could there be a deeper timing issue.  Are the above lines simply 
wrong for what I am trying to do?

Any insight greatly appreciated.

-- 
Brian Keener
bkeenerReMoVeAnTiSpAm AT thesoftwaresource DOT com
75462 DOT 747ReMoVeAnTiSpAm AT compuserve DOT com

Virtual  Access 6.0 build 8 Windows 2000 Service Pack 3 build 2195



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

- Raw text -


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