forward file descriptors other than 0,1,2

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

How can I forward open file descriptor N other than fd 0,1,2 ?
   echo aaa >/tmp/aaa
   ( ssh USER@HOST 'read 0<&4 ANS; echo $ANS' ) 4</tmp/aaa
How can I tell ssh to forward fd 4 to/from the connection so that
remove command had fd 4 open and connected fd 4 on the client ?


Site Timeline