www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <20010228154358.47127.qmail@web9902.mail.yahoo.com> |
Date: | Wed, 28 Feb 2001 15:43:58 +0000 (GMT) |
From: | =?iso-8859-1?q?Keith=20Starsmeare?= <keith_starsmeare AT yahoo DOT co DOT uk> |
Subject: | _popen gives no output when run from a remote session |
To: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
The following code when compiled -mno-cygwin doesn't work as expected from a remote telnet session, but works correctly when on the local machine: #include <stdio.h> int main() { char psBuffer[128]; FILE *output; if ((output = _popen("nm a.exe", "r")) == NULL ) exit(1); while(!feof(output)) if(fgets(psBuffer, 128, output) != NULL) printf(psBuffer); printf( "\nProcess returned %d\n", _pclose( output ) ); return 0; } Is this a problem with the inetd? I'm using the latest everything (as of today) on an NT 4.0 Workstation SP5. Help! ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |