SOLVED: Capturing file descriptor 3, or alternatives.
Ben Scott
dragonhawk at gmail.com
Tue Jun 26 08:01:42 EDT 2012
P.S. to the P.P.P.S.:
On Tue, Jun 26, 2012 at 7:55 AM, Ben Scott <dragonhawk at gmail.com> wrote:
> I kept trying this one-liner:
>
> ANSWER=$( ( dialog --output-fd 3 --inputbox 'Speak Friend and enter' 0
> 0 > /dev/fd/4 ) 3>&1 4>&1 )
This may make the redirection I'm talking about clearer:
ANSWER=$( ( dialog --output-fd 3 --inputbox 'Speak Friend and enter' 0
0 1>/dev/fd/4 ) 3>&1 4>&1 )
It specifies the stdout file descriptor explicitly for the
redirection of the dialog(1) process.
-- Ben
More information about the gnhlug-discuss
mailing list