SOLVED: Capturing file descriptor 3, or alternatives.
Ben Scott
dragonhawk at gmail.com
Tue Jun 26 07:36:25 EDT 2012
On Mon, Jun 25, 2012 at 11:09 PM, Ben Scott <dragonhawk at gmail.com> wrote:
> On Tue, Jun 19, 2012 at 4:34 PM, Bill Freeman <ke1g.nh at gmail.com> wrote:
>> What occurred to me is to send the final result to fd 3, which the
>> shell would have to have opened before forking. ...
>
> http://pastebin.com/RGBuRw0e
> It appears to work.
P.P.S.:
Slightly different version:
http://pastebin.com/XdxWjpeU
I realized this morning that I should be able to specify the file
descriptor numbers explicitly. Although that may or may not be
clearer. The first one assigned symbolic names to the file
descriptors, which I think I like better.
-- Ben
More information about the gnhlug-discuss
mailing list