Subject: Re: Receiving intermediate results from an application

Re: Receiving intermediate results from an application

From: Bob Alexander <>
Date: Mon, 23 Mar 2009 14:31:17 -0400
The server app calls setvbuf(stderr, NULL, _IONBF, 0) and does an fflush after every write.

Not sure I want to get into setting up a subsystem on the server, but I'll try putting running the app from an exec channel...

- Bob

Bob Alexander wrote:
It is. I know because (aside from looking at the code for the server
app) if I log in to the server with an ssh GUI and run the app, I
see the output as the program generates it.

That's not very reliable, because there are a few other programs
involved when running the app interactively.

Which is it - fflush() or explicitly setting fds to unbuffered IO?

I would also recommend running the app as a subsystem instead of
through a shell. That way you get a much cleaner communications



Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial.

libssh2-devel mailing list
Received on 2009-03-23