
20 Oct
2012
20 Oct
'12
12:38 p.m.
Quoth Jason Dusek
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