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


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

rxvt pops up new CMD windows for cygwin commands INSIDE batch files


Hi all,

does anyone have this problem, or does anyone know how to make it go away?

Problem Summary:
rxvt pops up new CMD windows for cygwin commands INSIDE batch files, but not
the batch file itself. This is annoying, I don't want any windows popping up
at all.

(output of cygcheck -s at bottom of email FYI)

Okay, here are some examples.
I start up a bash prompt and a rxvt window (running bash) via the Run dialog
box on the Start menu.

In bash I do this
 $ cmd /c ls
and, as expected, it just does a directory listing.

If I do the same thing in rxvt, the ls command runs in a pop-ed up cmd
window (which then closes when ls is done).
If I do this in rxvt:
 $ cmd /c cat
I can see it is definitely a CMD window (when I end cat with a ^D the window
closes). While the window is up, the shell in rxvt is waiting for cmd to
exit (as expected).

I initially thought it might be CMD that is popping up the window, so I
wrote this .BAT file:
--- a.bat ---
echo this is the CMD version of ECHO
@rem run the CMD command 'dir'
dir
-------

When I run this in bash, all the output stays in the bash (via ./a.bat)
window, and the SAME HAPPENS when I run it in rxtv. rxtv is not poping up a
window to run this .BAT file.

So, I made this .BAT file that contains a cygwin command:
--- b.bat ---
echo this is the CMD version of ECHO
@rem run the cygwin command 'cat'
cat
------

When I run b.bat in bash, it stays in the same window.
When I run it in rxvt, a CMD window pops up to run 'cat', but the output of
'echo' is in the rxvt window.
Here is the output you see in rxvt:
--- output of b.bat in rxvt ---
$ ./b.bat

e:\opt\cygwin\tmp\z>echo this is the CMD version of ECHO
this is the CMD version of ECHO

e:\opt\cygwin\tmp\z>cat
$
------


Oi.... this is really annoying me. Anyone have any ideas, or am I stuck with
it?

Thanks for your time!

=Matt
PS: thanks very much for making cygwin so KICK ASS! I use it all day, every
day!


-- output of cygcheck -s --
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Fri May 18 08:31:41 2001

WinNT Ver 5.0 build 2195 Service Pack 2

Path:	/cygdrive/e/jdk1.3/bin
	/usr/bin
	/cygdrive/c/bin
	/cygdrive/e/opt/emacs/bin
	/cygdrive/c/WINNT/system32
	/cygdrive/c/WINNT
	/cygdrive/c/WINNT/System32/Wbem
	.

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

PWD = `/tmp'
CYGWIN = `title strip_title'
TCL_LIBRARY = `E:\opt\wordnet-1.6\LIB\TCL7.6'
HOME = `/cygdrive/c/mattq'

Use `-r' to scan registry

a:  fd           N/A    N/A
c:  hd  NTFS    4000Mb  88% CP CS UN PA FC
d:  cd           N/A    N/A
e:  hd  NTFS    5765Mb  85% CP CS UN PA FC
l:  net NTFS   16996Mb  94% CP CS    PA        library
r:  net NTFS   12283Mb 100% CP CS UN PA FC

e:\opt\cygwin\bin  /usr/bin  user    binmode
e:\opt\cygwin\lib  /usr/lib  user    binmode
e:\opt\cygwin  /        user    binmode
e:\work  /work    user    textmode
c:    /cygdrive/c  user    textmode,noumount
e:    /cygdrive/e  user    textmode,noumount
l:    /cygdrive/l  user    textmode,noumount
r:    /cygdrive/r  user    textmode,noumount

Found: e:\opt\cygwin\bin\bash.exe
Found: e:\opt\cygwin\bin\cat.exe
Found: e:\opt\cygwin\bin\cpp.exe
Found: e:\opt\cygwin\bin\find.exe
Found: e:\opt\cygwin\bin\gcc.exe
Found: e:\opt\cygwin\bin\gdb.exe
Found: e:\opt\cygwin\bin\ld.exe
Found: e:\opt\cygwin\bin\ls.exe
Found: e:\opt\cygwin\bin\make.exe
Found: e:\opt\cygwin\bin\sh.exe

   56k 2000/12/03 e:\opt\cygwin\bin\cygbz21.0.dll
   45k 2001/04/25 e:\opt\cygwin\bin\cygform5.dll
   18k 2000/10/23 e:\opt\cygwin\bin\cyggdbm.dll
   17k 2001/01/07 e:\opt\cygwin\bin\cyghistory4.dll
   14k 2000/10/23 e:\opt\cygwin\bin\cygintl.dll
   81k 2001/04/28 e:\opt\cygwin\bin\cygitcl30.dll
   35k 2001/04/28 e:\opt\cygwin\bin\cygitk30.dll
   45k 2000/10/22 e:\opt\cygwin\bin\cygjbig1.dll
  119k 2000/10/23 e:\opt\cygwin\bin\cygjpeg6b.dll
   26k 2001/04/25 e:\opt\cygwin\bin\cygmenu5.dll
  156k 2001/04/25 e:\opt\cygwin\bin\cygncurses++5.dll
  226k 2001/04/25 e:\opt\cygwin\bin\cygncurses5.dll
   15k 2001/04/25 e:\opt\cygwin\bin\cygpanel5.dll
  163k 2001/05/06 e:\opt\cygwin\bin\cygpng2.dll
  108k 2001/01/07 e:\opt\cygwin\bin\cygreadline4.dll
  390k 2001/04/28 e:\opt\cygwin\bin\cygtcl80.dll
    5k 2001/04/28 e:\opt\cygwin\bin\cygtclpip80.dll
   10k 2001/04/28 e:\opt\cygwin\bin\cygtclreg80.dll
  243k 2000/10/23 e:\opt\cygwin\bin\cygtiff3.dll
  623k 2001/04/28 e:\opt\cygwin\bin\cygtk80.dll
   41k 2000/11/20 e:\opt\cygwin\bin\cygXpm-noX4.dll
   45k 2000/11/20 e:\opt\cygwin\bin\cygXpm-X4.dll
   49k 2001/02/03 e:\opt\cygwin\bin\cygz.dll
  631k 2001/04/25 e:\opt\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        dll major: 1003
        dll minor: 1
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 38
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        cygdrive flags: cygdrive flags
        cygdrive prefix: cygdrive prefix
        cygdrive default prefix:
        build date: Tue Apr 24 20:01:02 EDT 2001
        shared id: cygwin1S3

Use -h to see help about each section
----


Matt Quail -- Senior Software Engineer
http://www.cortexebusiness.com.au/
mailto:matt@cortexebusiness.com.au
+61 2 9901 6400



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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