Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: posting-list AT MailAndNews DOT com (Jari Aalto+mail.emacs) To: cygwin AT sourceware DOT cygnus DOT com CC: ntemacs-users AT cs DOT washington DOT edu, ding AT gnus DOT org, Andrew Innes - NTEmacs Subject: Re: Telnet and the net command Keywords: telnet,rfk,cygwin,allan,larry,command,com,emacs,clearwaters,buffer,net,tty X-Sender-Info: Emacs tiny tools: http://poboxes.com/jari.aalto/emacs-elisp.html http://home.eu.org/~jari/homepage.html. ICQ 'jari-aalto' 82313129 PGP 2.6.x keyid 47141D35 http://www.pgpi.net/ References: Date: 20 Dec 2000 01:29:36 +0200 In-Reply-To: Message-ID: Lines: 148 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 (i386-*-windows98.1998) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii * Tue 2000-12-19 Allan Clearwaters list.cygwin * Message-Id: | The problem is not related to the CYGWIN variable but rather to | subprocesses. It appears that (from a telnet login) if you launch a task | under NT (for instance a java application) then its output disappears down a | black hole. I assume this is what I saw with the net command. Is there any | way to solve this? [Crosspost to Emacs Gnus and NT Emacs mailing lists too] I recently ran into this while debuggin my Emacs/Gnus configuration. I was trying to get Gnus to telnet to remote host and then make login to the newsserver. After some Lisp level debugginh in Emacs Gnus, I found out that cygwin telnet did not echo the prompt to Emacs process buffer at all. I don't have an idea why it doesn't show there. You can sent a command to that process buffer, and the prompt "sort of" appears, but it does not stay to the left as in regular logins. If anyone have access to NT Emacs (mine is still 20.6), Here is some code to test. I'm running the current net release as of 2000-12-20 Put you cursor in emacs after the last paren and hit C-x C-e and you can run the code with M-x (Esc and x) my-telnet-cygwin. Change the login destination host as needed. Jari (defun my-telnet-cygwin-test () (interactive) ;; (require 'nntp) ;; use global now for testing outside this function (setq buffer "*telnet-cygwin*" ) (setq proc (apply 'start-process "telnet-process" buffer "telnet" nil )) (display-buffer buffer) (message "As you can see, no telnet> prompt here....") (sit-for 5) (process-send-string proc "set escape \^X\n") (message "But it accepts command, prompt is still kinda lost") (sit-for 5) (message "Now you should see attempted login..." (process-send-string proc (concat "open " "newton.tpu.fi" "\n")) (sit-for 5) ;; (nntp-wait-for-string "^\r*.?password:") (delete-process proc) (if (y-or-n-p "Kill test telnet buffer?") (kill-buffer buffer)) )) | -----Original Message----- | From: Larry Hall (RFK Partners, Inc) [mailto:lhall AT rfk DOT com] | Sent: 18 December 2000 22:44 | To: Allan Clearwaters | Subject: RE: Telnet and the net command | | No, I have never tried to telnet to my machine. TERMcygwin for me as well, | which is the default. | | Larry | | At 05:41 PM 12/18/2000, you wrote: | >Larry, | > | >Do you have this working? What is your TERM variable set to? Mine comes | up | >as TERM'cygwin'. | > | >Thanx, | >Al | > | >-----Original Message----- | >From: Larry Hall (RFK Partners, Inc) [mailto:lhall AT rfk DOT com] | >Sent: 18 December 2000 21:36 | >To: Allan Clearwaters | >Subject: RE: Telnet and the net command | > | > | >No. Setting "tty" in the CYGWIN environment variable can cause problems | >when running non-Cygwin programs because of the different way stdin/stdout/ | >stderr are handled. This is why setting "tty" is not the default. If you | >don't have "tty" set, then this can't be causing you any trouble. My | >guess is that you have a terminal problem but that's a guess completely | >out of the blue. | > | >Good luck, | > | >Larry | > | > | >At 04:31 PM 12/18/2000, Allan Clearwaters wrote: | > >Larry, | > > | > >Thanks for the hint but tty is not set; in fact, CYGWIN is not set. | Could | > >this be a problem? | > > | > >Thanx, | > >Al | > > | > > | > >-----Original Message----- | > >From: Larry Hall (RFK Partners, Inc) [mailto:lhall AT rfk DOT com] | > >Sent: 18 December 2000 20:14 | > >To: Allan Clearwaters; cygwin AT cygwin DOT com | > >Subject: Re: Telnet and the net command | > > | > > | > >At 03:05 PM 12/18/2000, Allan Clearwaters wrote: | > > >If a run a normal bash window under WinNT/2000, the net command behaves | >as | > > >expected. If I attach via telnet the command runs but produces no | >output. | > > >Any idea why? Since I would like to use the telnet connection to | control | >a | > > >remote machine this is a bit of a pain. | > > > | > > >Thanx, | > > >Allan Clearwaters | > > | > > | > >If "tty" is set in your CYGWIN environment variable, try unsetting it, | > >exiting all Cygwin programs (including any services) or reboot to be | sure, | > >and try again. | > > | > > | > > | > >Larry Hall lhall AT rfk DOT com | > >RFK Partners, Inc. http://www.rfk.com | > >118 Washington Street (508) 893-9779 - RFK Office | > >Holliston, MA 01746 (508) 893-9889 - FAX -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple