Quoth Jason Dusek <jason.du...@gmail.com>,
...
> For my application, it's important to be able to run multiple
> queries against the same Bash session. Waiting for Bash to shut
> down is thus not a viable way to finalize the response.

You could redirect to disk files and also use a pipe to wait for exit.

I suppose you redirect I/O for individual queries by applying shell
redirections to the command?  So like this,

   uname -a > /tmp/cmd1 2> /tmp/cmd2 7> /tmp/exitpipe

... then read from /tmp/exitpipe, ignore empty result and read command
outputs from the disk files.

        Donn

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to