delorie.com/archives/browse.cgi | search |
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 |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Mon, 7 Jan 2002 16:43:58 -0600 |
To: | cygwin AT cygwin DOT com |
Subject: | stdin/stdout with msdev.exe from [cygwin|apache] not working? |
Message-ID: | <20020107224358.GI28157@ctelcom.net> |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.3.24i |
X-Operating-System: | Linux ns1 2.2.14 #1 Fri May 5 15:28:59 CDT 2000 i586 unknown |
X-Operating-System-Uptime: | 09:19:54 up 211 days, 19:24, 1 user, load average: 0.02, 0.12, 0.15 |
From: | Mike Brownlow <mike AT wsmake DOT org> |
Hi, I have done a little testing and have come up with some ways to force my way through this problem. I'd like to know if I've just completely missed something important or not. This is the basic problem: 1. I would like to build a dev studio project from within cygwin. 2. Using msdev.exe directly from cygwin yields no output. Solutions: 3. Using it through cmd.exe does. 4. Using it through apache does (without cmd.exe). Another quirk: 5. Using it through cmd.exe through apache doesn't (sort of). This is going to take a bit of explaining :), but here it goes: From a command prompt I can do this: C:\> msdev.exe /? Usage: MSDEV [myprj.dsp|mywksp.dsw] - load project/workspace ... C:\> From cygwin I can't (well, it does work, but no stdout): mike AT win2k:~$ msdev.exe /\? mike AT win2k:~$ To solve this I did this: mike AT win2k:~$ cmd.exe /C msdev.exe /\? Usage: MSDEV [myprj.dsp|mywksp.dsw] - load project/workspace ... mike AT win2k:~$ So, that's fine and dandy. I have aliases to do all of that for me and I see my project build and what not. I also tried with the perl script below from the command line and it worked. But then I decided to try over the web using apache. (cygwin apache, not the windows version). A script like this: #!/usr/bin/perl system("env && /os/WINNT/system32/CMD.EXE /C msdev /\\?"); But that caused a command shell window to pop up on the server with the output instead of sending it back to the browser. So Apache seems to be able to read the output of msdev.exe okay without cmd.exe. Because once I remove cmd.exe it does work. So I'm wondering a bit about what is supposed to happen there. Is apache right? Or cygwin? Or what? I can provide any other information on request, but I'll just toss this out there first. -- Mike Brownlow ><> http://www.wsmake.org/~mike/ ----------------------------------------------------------------- 1024D/8AA6EAFD 3861 96B3 EEA2 285C BE23 F706 3E1E EBB2 8AA6 EAFD -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |