Lisp HUG Maillist Archive

MS Windows: Missing output in Shell window

This is a LWW / MS Windows question.

If I run a certain program from a Windows Command Prompt (DOS)
window I get certain output in the Command Prompt window,
but if I run the same program from a LispWorks Shell window
or using SYSTEM:CALL-SYSTEM-SHOWING-OUTPUT some of the output
is missing.

What could explain this?

I had a play with redirecting the error output to see if the
missing output was the same as the error output, but it wasn't.

Perhaps the program is not flushing its output properly on exit.
Could that explain it? (And if so, why the difference between
the two situations?)

Simon



Re: MS Windows: Missing output in Shell window

Unable to parse email body. Email id is 5369

RE: MS Windows: Missing output in Shell window

> From: owner-lisp-hug@lispworks.com 
> [mailto:owner-lisp-hug@lispworks.com] On Behalf Of Martin Simmons
> Sent: 21 February 2006 19:17
> To: lisp-hug@lispworks.com
> Subject: Re: MS Windows: Missing output in Shell window
> 
> 
> >>>>> On Mon, 20 Feb 2006 19:18:00 -0000, "Simon Katz" 
> <sk@nomistech.com> said:
> > 
> > This is a LWW / MS Windows question.
> > 
> > If I run a certain program from a Windows Command Prompt (DOS)
> > window I get certain output in the Command Prompt window,
> > but if I run the same program from a LispWorks Shell window
> > or using SYSTEM:CALL-SYSTEM-SHOWING-OUTPUT some of the output
> > is missing.
> > 
> > What could explain this?
> > 
> > I had a play with redirecting the error output to see if the
> > missing output was the same as the error output, but it wasn't.
> > 
> > Perhaps the program is not flushing its output properly on exit.
> > Could that explain it? (And if so, why the difference between
> > the two situations?)
> 
> Yes, that's possible, but it's a little strange.
> 
> What happens if you run it in a Cammand Prompt with the 
> output piped through MORE?

Hi Martin.

The result is the same as with a LispWorks Shell window -- I lose
the same output.


> Do you have GNU Emacs on Windows?  It would be interesting to 
> see if it works in an emacs shell buffer.

I do now :-) (version 21.3.1).

The same problem shows up.

____

I have some more info:

The developer of the program sent me a new version, where he
uses C++'s cout and cerr. Previously he was using printf and stdout.
That seems to have made the problem go away.

Does that make sense to you? Does it tie in with the knowledge
behind your comment "that's possible, but it's a little strange"?

Simon



Updated at: 2020-12-10 08:48 UTC