RE: Interactive subprocess output not echoed until process ends
"Daniel E. Fineman" <[email protected]>
| Newsgroups | gmane.emacs.xemacs.windows |
|---|---|
| Message-ID | <000601c317d4$f9206020$8001a8c0@aardvark> |
Stephen,
Thanks for writing back!
Again, I'm having problems within a shell, with subproccesses -- any
non-interactive shell command ("synchronous", I believe you'd call it --
e.g. ls, dir, etc) returns output just fine. Many interactive shell
subprocesses (e.g. mysql, telnet command mode, etc) won't return the
output of the process until the process ends -- not terribly useful!
I've noticed that some interactive shell subprocsses (e.g. nslookup,
telnet to a host) interactively return the subprocess output.
For example, if I run "telnet", and hit return a few times (it should
give me an equal number of "telnet> " prompts), I get no output. If I
type "quit" to the blank space, it then ends the telnet process and
gives me all the output at once. As such:
-------------------------- shell output -------------------
~ $ telnet
quit
telnet> telnet> telnet> telnet> telnet> telnet> ~ $
-----------------------------------------------------------
Here're the values you requested,
COMSPEC=C:\WINDOWS\system32\cmd.exe
SHELL=/bin/bash (cygwin)
Below is what report-emacs-bug creates.
Thanks!
Dan Fineman
[email protected]
-------------------------- report-emacs-bug output -------------------
System Info to help track down your bug:
---------------------------------------
OS version: Microsoft Windows 2000 [Version 5.00.2195] OS: Windows_NT
XEmacs 21.4.8 \"Honest Recruiter (Windows [2])\" configured for
`i586-pc-win32'. Building XEmacs in
\"f:\\xemacs\\xemacs-21.4-release\\nt\". Using compiler \"cl -nologo
-W3 -O2 -G5 -ML\". Installing XEmacs in \"c:\\Program
Files\\XEmacs\\XEmacs-21.4.8\". Package path is
\"~\\.xemacs;;c:\\Program Files\\XEmacs\\site-packages;c:\\Program
Files\\XEmacs\\xemacs-packages\". Compiling in support for Microsoft
Windows native GUI. Compiling in support for XPM images. Compiling
in support for GIF images. Compiling in support for PNG images.
Compiling in support for TIFF images. Compiling in support for JPEG
images. Compiling in support for X-Face message headers. Compiling
in support for toolbars. Compiling in support for dialogs. Compiling
in support for widgets. Compiling in support for native sounds.
Compiling in fast dired implementation. Using minimal tagbits. Using
indexed lrecord implementation. Using portable dumper.
Load-Path Lisp Shadows:
----------------------
nil
Installed XEmacs Packages:
-------------------------
((zenirc:version 1.13 :type regular)
(xslt-process :version 1.07 :type regular)
(xslide :version 1.01 :type regular)
(xemacs-devel :version 1.44 :type single-file)
(xemacs-base :version 1.63 :type regular)
(w3 :version 1.23 :type regular)
(vm :version 7.04 :type regular)
(viper :version 1.34 :type regular)
(view-process :version 1.11 :type regular)
(vhdl :version 1.15 :type regular)
(vc-cc :version 1.18 :type regular)
(vc :version 1.3 :type regular)
(tramp :version 1.05 :type regular)
(tpu :version 1.12 :type regular)
(tooltalk :version 1.13 :type regular)
(tm :version 1.32 :type regular)
(time :version 1.11 :type regular)
(textools :version 1.12 :type regular)
(text-modes :version 1.43 :type single-file)
(texinfo :version 1.2 :type regular)
(supercite :version 1.19 :type regular)
(strokes :version 1.08 :type regular)
(speedbar :version 1.23 :type regular)
(sounds-wav :version 1.1 :type regular)
(sounds-au :version 1.1 :type regular)
(slider :version 1.13 :type regular)
(sieve :version 1.02 :type regular)
(sh-script :version 1.15 :type regular)
(sgml :version 1.08 :type regular)
(semantic :version 1.12 :type regular)
(scheme :version 1.11 :type regular)
(rmail :version 1.13 :type regular)
(reftex :version 1.25 :type regular)
(psgml :version 1.28 :type regular)
(ps-print :version 1.04 :type regular)
(prog-modes
:version
1
.56
:type
single-file)
(pcomplete :version 1.01 :type regular)
(pcl-cvs :version 1.61 :type regular)
(pc :version 1.22 :type single-file)
(os-utils :version 1.28 :type single-file)
(net-utils :version 1.24 :type single-file)
(mmm-mode :version 1.0 :type regular)
(misc-games :version 1.15 :type single-file)
(mine :version 1.14 :type regular)
(mh-e :version 1.14 :type regular)
(mew :version 1.17 :type regular)
(mailcrypt :version 2.11 :type regular)
(mail-lib :version 1.46 :type regular)
(liece :version 1.04 :type regular)
(jde :version 1.35 :type regular)
(ispell :version 1.24 :type regular)
(ilisp :version 1.22 :type regular)
(igrep :version 1.08 :type regular)
(idlwave :version 1.25 :type regular)
(ibuffer :version 1.07 :type regular)
(hm--html-menus :version 1.18 :type regular)
(haskell-mode :version 1.03 :type regular)
(gnus :version 1.6 :type regular)
(gnats :version 1.14 :type regular)
(games :version 1.13 :type regular)
(fsf-compat :version 1.11 :type single-file)
(frame-icon :version 1.09 :type regular)
(forms :version 1.14 :type regular)
(footnote :version 1.15 :type regular)
(eudc :version 1.36 :type regular)
(eterm :version 1.13 :type regular)
(eshell :version 1.03 :type regular)
(emerge :version 1.09 :type regular)
(elib :version 1.1 :type single-file)
(eieio :version 1.02 :type regular)
(efs :version 1.29 :type regular)
(edt :version 1.12 :type regular)
(edit-utils :version 1.85 :type single-file)
(ediff :version 1.41 :type regular)
(edebug :version 1.14 :type regular)
(dired :version 1.12 :type regular)
(dictionary :version 1.11 :type regular)
(debug :version 1.15 :type regular)
(crisp :version 1.12 :type regular)
(cookie :version 1.14 :type regular)
(clearcase :version 1.03 :type regular)
(cc-mode :version 1.28 :type regular)
(calendar :version 1.18 :type regular)
(calc :version 1.23 :type regular)
(c-support :version 1.16 :type single-file)
(build :version 1.05 :type regular)
(bbdb :version 1.2 :type regular)
(auctex :version 1.31 :type regular)
(apel :version 1.23 :type regular)
(ada :version 1.1 :type regular)
(Sun :version 1.13 :type regular))
Features:
--------
(mail-abbrevs xemacsbug shadow sendmail rfc822 shell font disp-table
time cus-face comint ring env zenirc-autoloads xslt-process-autoloads
xslide-autoloads xemacs-devel-autoloads xemacs-base-autoloads
w3-autoloads vm-autoloads viper-autoloads view-process-autoloads
vhdl-autoloads vc-cc-autoloads vc-autoloads tramp-autoloads
tpu-autoloads tooltalk-autoloads tm-autoloads time-autoloads
textools-autoloads text-modes-autoloads texinfo-autoloads
supercite-autoloads strokes-autoloads speedbar-autoloads
sounds-wav-autoloads sounds-au-autoloads slider-autoloads
sieve-autoloads sh-script-autoloads sgml-autoloads semantic-autoloads
scheme-autoloads rmail-autoloads reftex-autoloads psgml-autoloads
ps-print-autoloads prog-modes-autoloads pcomplete-autoloads
pcl-cvs-autoloads pc-autoloads os-utils-autoloads net-utils-autoloads
mmm-mode-autoloads misc-games-autoloads mine-autoloads mh-e-autoloads
mew-autoloads mailcrypt-autoloads mail-lib-autoloads liece-autoloads
jde-autoloads ispell-autoloads ilisp-autoloads igrep-autoloads
idlwave-autoloads ibuffer-autoloads hm--html-menus-autoloads
haskell-mode-autoloads gnus-autoloads gnats-autoloads games-autoloads
fsf-compat-autoloads frame-icon-autoloads forms-autoloads
footnote-autoloads eudc-autoloads eterm-autoloads eshell-autoloads
emerge-autoloads elib-autoloads eieio-autoloads efs-autoloads
edt-autoloads edit-utils-autoloads ediff-autoloads edebug-autoloads
dired-autoloads dictionary-autoloads debug-autoloads crisp-autoloads
cookie-autoloads clearcase-autoloads cc-mode-autoloads
calendar-autoloads calc-autoloads c-support-autoloads build-autoloads
bbdb-autoloads auctex-autoloads apel-autoloads ada-autoloads
Sun-autoloads lisp-autoloads loadhist auto-show fontl-hooks code-cmds
gutter-items menubar-items x-menubar dragdrop mode-motion mouse itimer
auto-save lisp-mode easymenu iso8859-1 page buff-menu lib-complete
help-nomule cus-file derived frame text-props obsolete cus-start
custom widget cl-extra mini-cl cl cl-19 packages backquote
very-early-lisp file-coding mswindows-scrollbars mswindows toolbar
native-sound scrollbar network-streams subprocesses
menu-accelerator-support menubar md5 xemacs gutter tiff png gif jpeg
xface xpm xbm lisp-float-type windows-nt dragdrop-api dialog devices
window-system base64)
Recent keystrokes:
-----------------
C-c C-c C-x k RET M-x s h e l l RET t e l n e t RET
RET RET RET RET RET q u i t RET button1 button1up button1
button1up button1 button1up M-w misc-user button1 button1up
e n v RET C-r s h e l l M-> e c h o RET e x p o r t
RET C-r s h e l l M-> e c h o SPC $ S H E L L RET misc-user
M-x r e p o r t SPC e m SPC a BS b u g SPC RET
Recent messages (most recent first):
-----------------------------------
Loading xemacsbug...done
Loading xemacsbug...
C:\Documents and Settings\Dan\
C:\Documents and Settings\Dan\
Loading shell...done
Loading shell...
Loading font...done
Loading font...
Loading time...done
Loading cus-face...done
Loading cus-face...
Loading time...
Loading comint...done
Loading comint...
Loading env...done
Loading env...
-----Original Message-----
From: Stephen J. Turnbull [mailto:[email protected]] On Behalf
Of Stephen J. Turnbull
Sent: Sunday, May 11, 2003 8:39 AM
To: Daniel E. Fineman
Cc: [email protected]
Subject: Re: Interactive subprocess output not echoed until process ends
>>>>> "Daniel" == Daniel E Fineman <[email protected]> writes:
Daniel> If you start a shell, and then in that shell, start an
Daniel> interactive sub-process (i.e. 'telnet' or 'mysql'), the
Daniel> user won't see the output of the subprocess until the
Daniel> subprocess ends.
This is likely to be either a misconfigured or out-and-out broken shell
rather than an XEmacs problem. Most of the XEmacs Windows developers
live in shell buffers.
Daniel> Is there any way to get the subprocess's output to be
Daniel> echoed immediately?
For me (Windows 2000, XEmacs 21.4.12, 21.5.12), starting XEmacs and
typing M-x shell does the trick. Shell is Cygwin bash.
Please send a full bug report using M-x report-emacs-bug, and don't
forget to tell us the values of your SHELL and COMSPEC environment
variables, and (if available ) the version of the shell.
--
Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573
JAPAN
Ask not how you can "do" free software business;
ask what your business can "do for" free software.