Hi Jeff,

The problem is that I'm not running the command from java (which has it's own issues), but rather the command is started by the ssh shell/ exec service. Unfortunately ssh only provides stdin, stdout, and stderr forwarding on fd's 0-2. There is no mechanism to do anything else. It would be possible to use a socket to tunnel over the ssh connection, but this seems overly complicated. Fortunately I know that the shell is connected to /dev/tty, so sending to this device should work consistently.

I guess ideally what I need is a -turn-off-all-stdout-and-stderr-but- leave-xml-output-alone option :-)

Regards,
Greg

On Sep 10, 2009, at 8:04 AM, Jeff Squyres wrote:

On Sep 9, 2009, at 12:17 PM, Ralph Castain wrote:

Hmmm....I never considered the possibility of output-filename being
used that way. Interesting idea!


That feels way weird to me -- for example, how do you know that you're actually outputting to a tty?

FWIW: +1 on the idea of writing to numbered fd's passed on the command line. It just "feels" like a more POSIX-ish way of doing things...? I guess I'm surprised that that would be difficult to do from Java.

--
Jeff Squyres
jsquy...@cisco.com

_______________________________________________
devel mailing list
de...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/devel

Reply via email to