_popen gives no output when run from a remote session
Keith Starsmeare
keith_starsmeare@yahoo.co.uk
Wed Feb 28 07:44:00 GMT 2001
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
More information about the Cygwin
mailing list