This is the mail archive of the cygwin@sources.redhat.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]

_popen gives no output when run from a remote session


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


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