Subject: Re: Receiving intermediate results from an application

Re: Receiving intermediate results from an application

From: Bob Alexander <balexander_at_expressor-software.com>
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
channel.


//Peter

  

------------------------------------------------------------------------------
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. http://p.sf.net/sfu/www-adobe-com

_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-03-23