This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: .bat from xterm opens cmd.exe window


On Wed, 8 Jan 2003, McEligot, Sean  (contractor) wrote:

> Lately, running batch files (and perhaps other programs) from xterm or rxvt
> have been opening new cmd.exe windows. they used to output directly to the
> xterm console. To recreate from xterm run:
> 
> echo sleep 10 > test.bat
> ./test.bat
> 
> On my machine, a cmd.exe window pops up for 10 seconds then disappears.
> 
> What I expect to happen is the xterm would run the batch file without
> popping up a new window and any output would go  to the xterm.

The only interpreter for batch files is cmd.exe. After being started, cmd
check if it has console (the windows terminal window) attached and creates
one if not.

Xterm (or better the bash running in xterm) has no possibility to tell cm.exe
to use the xterm window.

Solution: live with it or use shell scripts.

bye
	ago
-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]