This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
_popen gives no output when run from a remote session
- To: cygwin at cygwin dot com
- Subject: _popen gives no output when run from a remote session
- From: Keith Starsmeare <keith_starsmeare at yahoo dot co dot uk>
- Date: Wed, 28 Feb 2001 15:43:58 +0000 (GMT)
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