.bat from xterm opens cmd.exe window

Alexander Gottwald alexander.gottwald@s1999.tu-chemnitz.de
Wed Jan 8 19:34:00 GMT 2003


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



More information about the Cygwin-xfree mailing list