Re: read fd6 in execline

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Sat, 11 Oct 2014 21:12:05 +0100

> tcpclient -RHl0 -T1 127.0.0.1 25 foreground { head -n 1 ...

  You don't need foreground if the process you're executing is
the long-lived one.


> Hmm ... How do I read FD6 with execline?

  "fdmove 0 6" will redirect fd 6 to fd 0.

  "tcpclient -RHl0 -T1 127.0.0.1 25 fdmove 0 6 head -n 1" will
do what you want.

-- 
  Laurent
Received on Sat Oct 11 2014 - 20:12:05 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC