public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: problem in telnet session
@ 2001-03-13  6:05 Kalkoul Morad
  2001-03-13  6:24 ` Corinna Vinschen
  2001-03-13  6:36 ` Egor Duda
  0 siblings, 2 replies; 19+ messages in thread
From: Kalkoul Morad @ 2001-03-13  6:05 UTC (permalink / raw)
  To: 'Egor Duda', 'cygwin@cygwin.com'

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2058 bytes --]

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?

Thanks in advance .

Best regards, Morad KALKOUL



-----Message d'origine-----
De : Egor Duda [ mailto:deo@logos-m.ru ]
Envoyé : mardi 13 mars 2001 14:17
À : Kalkoul Morad
Cc : cygwin@cygwin.com
Objet : Re: problem in telnet session


Hi!

Tuesday, 13 March, 2001 Kalkoul Morad M-Kalkoul@arte-tv.com wrote:

KM> Why when I'm in telnet session command like ipconfig displays a result,
and
KM> the command like net start displays nothing only the next prompt.

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.

the  following simple patch to inetd solved this problem for me. Corinna,
can you please consider it?

--- inetd.c.orig        Tue Mar 13 16:13:31 2001
+++ inetd.c     Tue Mar 13 16:10:44 2001
@@ -612,8 +612,11 @@ service_main(argc, argv)
        pid_t pid;
        char buf[50];
+
+#ifdef __CYGWIN__
         exception_list except_list;
         cygwin_internal (CW_INIT_EXCEPTIONS, &except_list);
 
-#ifdef __CYGWIN__
+        AllocConsole ();
+
         if (is_winnt && !debug) {
             openlog("inetd", LOG_PID | LOG_NOWAIT, LOG_DAEMON);

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 19+ messages in thread
[parent not found: <20010314142253.C24928@r...>]
[parent not found: <C57135C37E89D411836D0001FA32E63B72E45A@c...>]
* RE: problem in telnet session
@ 2001-03-14  6:08 Kalkoul Morad
  0 siblings, 0 replies; 19+ messages in thread
From: Kalkoul Morad @ 2001-03-14  6:08 UTC (permalink / raw)
  To: 'Egor Duda'

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2050 bytes --]

Congratulations Egor.


Best regards.

Morad KALKOUL


-----Message d'origine-----
De : Egor Duda [ mailto:deo@logos-m.ru ]
Envoyé : mardi 13 mars 2001 15:32
À : Kalkoul Morad
Cc : cygwin@cygwin.com
Objet : Re: problem in telnet session


Hi!

Tuesday, 13 March, 2001 Kalkoul Morad M-Kalkoul@arte-tv.com wrote:

KM> 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.

KM> but it doesn't work, have you another idea?

what  exactly  doesn't  work?  before-mentioned  procedure?
probably  i  didn't  make myself clear enough, but if you suppose that
setting  "Allow  Service to interact with desktop" will make net start
displaying  output in your telnet session then you're wrong. it won't.
the  sole  purpose  of  this  procedure  is  to _illustrate_ where the
problem   is.   To  _solve_  the  problem, you should either apply the
patch yourself or wait for updated inetutils package.

KM> the  following simple patch to inetd solved this problem for me.
Corinna,
KM> can you please consider it?

KM> --- inetd.c.orig        Tue Mar 13 16:13:31 2001
KM> +++ inetd.c     Tue Mar 13 16:10:44 2001
KM> @@ -612,8 +612,11 @@ service_main(argc, argv)
KM>         pid_t pid;
KM>         char buf[50];
KM> +
KM> +#ifdef __CYGWIN__
KM>          exception_list except_list;
KM>          cygwin_internal (CW_INIT_EXCEPTIONS, &except_list);
 
KM> -#ifdef __CYGWIN__
KM> +        AllocConsole ();
KM> +
KM>          if (is_winnt && !debug) {
KM>              openlog("inetd", LOG_PID | LOG_NOWAIT, LOG_DAEMON);

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: problem in telnet session
@ 2001-03-14  1:43 Kalkoul Morad
  2001-03-14  2:58 ` Corinna Vinschen
  0 siblings, 1 reply; 19+ messages in thread
From: Kalkoul Morad @ 2001-03-14  1:43 UTC (permalink / raw)
  To: 'Egor Duda'

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2204 bytes --]

Hi,

like Corinna said that your patch runs, and because I'm not a big
programmer, 
if you can tell me everything that it hat to do update my inetd wit the
command line to compile inetd?

Thans in advance
 


-----Message d'origine-----
De : Egor Duda [ mailto:deo@logos-m.ru ]
Envoyé : mardi 13 mars 2001 15:32
À : Kalkoul Morad
Cc : cygwin@cygwin.com
Objet : Re: problem in telnet session


Hi!

Tuesday, 13 March, 2001 Kalkoul Morad M-Kalkoul@arte-tv.com wrote:

KM> 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.

KM> but it doesn't work, have you another idea?

what  exactly  doesn't  work?  before-mentioned  procedure?
probably  i  didn't  make myself clear enough, but if you suppose that
setting  "Allow  Service to interact with desktop" will make net start
displaying  output in your telnet session then you're wrong. it won't.
the  sole  purpose  of  this  procedure  is  to _illustrate_ where the
problem   is.   To  _solve_  the  problem, you should either apply the
patch yourself or wait for updated inetutils package.

KM> the  following simple patch to inetd solved this problem for me.
Corinna,
KM> can you please consider it?

KM> --- inetd.c.orig        Tue Mar 13 16:13:31 2001
KM> +++ inetd.c     Tue Mar 13 16:10:44 2001
KM> @@ -612,8 +612,11 @@ service_main(argc, argv)
KM>         pid_t pid;
KM>         char buf[50];
KM> +
KM> +#ifdef __CYGWIN__
KM>          exception_list except_list;
KM>          cygwin_internal (CW_INIT_EXCEPTIONS, &except_list);
 
KM> -#ifdef __CYGWIN__
KM> +        AllocConsole ();
KM> +
KM>          if (is_winnt && !debug) {
KM>              openlog("inetd", LOG_PID | LOG_NOWAIT, LOG_DAEMON);

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 19+ messages in thread
* problem in telnet session
@ 2001-03-13  3:14 Kalkoul Morad
  2001-03-13  5:19 ` Egor Duda
  0 siblings, 1 reply; 19+ messages in thread
From: Kalkoul Morad @ 2001-03-13  3:14 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Hi,

Why when I'm in telnet session command like ipconfig displays a result, and
the command like net start displays nothing only the next prompt.

thanks in advance.

best regards, Morad KALKOUL.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2001-03-15  3:37 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-13  6:05 problem in telnet session Kalkoul Morad
2001-03-13  6:24 ` Corinna Vinschen
2001-03-13  6:53   ` Keith Starsmeare
2001-03-13  7:17     ` Corinna Vinschen
2001-03-14  6:47       ` Keith Starsmeare
2001-03-13  6:36 ` Egor Duda
     [not found] <20010314142253.C24928@r...>
2001-03-14 14:46 ` Rui-Tao Dong
     [not found] <C57135C37E89D411836D0001FA32E63B72E45A@c...>
     [not found] ` <20010314115838.V2116@c...>
2001-03-14 10:20   ` Rui-Tao Dong
2001-03-14 11:02     ` Michael Erdely
2001-03-14 11:11     ` Corinna Vinschen
2001-03-14 11:22     ` Christopher Faylor
     [not found]   ` <v5y9u8fc13.fsf@P...>
     [not found]     ` <20010314201133.F8866@c...>
2001-03-14 15:13       ` Rui-Tao Dong
2001-03-15  3:37         ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2001-03-14  6:08 Kalkoul Morad
2001-03-14  1:43 Kalkoul Morad
2001-03-14  2:58 ` Corinna Vinschen
2001-03-13  3:14 Kalkoul Morad
2001-03-13  5:19 ` Egor Duda
2001-03-13  6:23   ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).