From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Starsmeare To: Corinna Vinschen Subject: Re: problem in telnet session Date: Tue, 13 Mar 2001 06:53:00 -0000 Message-id: References: <20010313152417.B569@cygbert.vinschen.de> X-SW-Source: 2001-03/msg00777.html On Tue, 13 Mar 2001, Corinna Vinschen wrote: > On Tue, Mar 13, 2001 at 03:03:23PM +0100, Kalkoul Morad wrote: > > I did it: > > >i believe this is due to some net.exe "feature". it seems that if it > > >runs out of console window, it creates new console and outputs > > >everything there. it's can easily seen by setting "Allow Service to > > >interact with desktop" for inetd service. when you run in your > > >telnet or ssh session 'net start some_big_service' you'll see console > > >window with net.exe output popping up on your desktop. > > > > but it doesn't work, have you another idea? > > ??? It did work when I've just tested it. Did you in fact recompile > inetutils? It works for me too, but is there another solution? One problem is that I'm not sitting at the desktop. Another more serious problem is that programs which process the output stream don't work when run through the inetd. E.g. The following code when compiled with gcc --mno-cygwin (or cl) doesn't have any output to process when run through the inetd: #include 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)); } This problem is affecting a non-cygwin program that we use, so we have to log on locally to use this program. :( Keith -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple