feature request
Robin David Hammond
rhammond at databit7.com
Wed Feb 9 02:43:29 EST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
perhaps you can use netcat as an interim measure.
On 2011-02-08 09:41, Cyrille Lefevre wrote:
>
> Le 08/02/2011 01:41, Iain Morgan a écrit :
>>
>> On Mon, Feb 07, 2011 at 15:56:29 -0600, Cyrille Lefevre wrote:
>>>
>>> Hi,
>>>
>>> how about to provide a simple way to forward raw file descriptors
>>> through ssh tunnels.
>>>
>>> something which may provide a way to write something like :
>>>
>>> (echo 3; read> out3) |&
>>> exec 3<&p 4>&p
>>> echo 5>| out5
>>> exec 5<> out5
>>> echo 1 |
>>> ssh -d 3:rd -d 4:wr -d 5:rw '
>>> read<&3; echo $REPLY>&4
>>> read; echo $REPLY
>>> read<&5; echo $REPLY>&5
>>> '> out1
>>>
>>> the expected result is 1 in out1, 3 in out3 and 5\n5 in out5.
>>>
>>> PS : hope the sample is right :-)
>>
>> What problem are you hoping to solve with this?
>
> the ability to have more than the 3 standard file descriptors in remote
> shell scripting.
>
> a common case I use is :
>
> exec 9>&1
> var=$(script)
>
> where script output its result on fd 1, error messages of fd 2 and
> informational messages on fd 9. don't ask why, it's like that.
>
> thing impossible through ssh w/o playing w/ something to multiplex
> standard file descriptors through fd 2 using fifos, tags and loops.
>
> https://groups.google.com/group/fr.comp.os.unix/browse_thread/thread/8acc88b475b324b6/21d2e2f1bf85c5a7?hl=fr&ie=UTF-8&q=cyrille+lefevre+PreSshFilterLog&pli=1
>
>
> I've tryed netpipesw/o success and even if that worked, that will
> require to have netpipes on every host which is not possible in my
> production environment.
>
> Regards,
>
> Cyrille Lefevre
- --
_
ASCII ribbon campaign ( ) | Robin-David Hammond %KB3IEN
against HTML e-mail X | CCNA
/ \
databit7.com VoIP: Sales, Consulting
VPN, Backups and Monitoring
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJNUWShAAoJELbrs44SuiR02oEP/26p6rgRia4DRXPdHMPzKS2U
57MNQ1kS5ZyFPtkpYa/4Dbqxa6J3S/OZz2FdNfUzyzxgkajSFSKI++ggEaqgVB6b
tCY5NlQG5vUhg6B4qBXvG6b5MCe812iY9HMSndPirjvWMYy/BA78bhvQwGVu+vZT
+0PcsZvdbrj4bp6qORpN8XDiWZdU7SJe0sQOMlbEYoqqf2ed1bNyIBjeSyyZ7ZTR
XBlpOyJxwI46/JiWCuzQ7TVlURg8orAORtviz/ZkFC9O5rPzCRMMpiNobQwxfogL
9vrMes5RZ6Te3xoSLk2QDD7BJ+aKIJ63DWbwb7wFblVFuWXfrA63qeiUyzJFQPK+
j3hWEKLF+j8orIFXnZhBjbJphgjluupYx/huKYZ86bEI0UMmJCfJ95oc2nQ+ReYZ
Q0ZTS7pGY1H3UmUa8NhhYF0UmTrBI+UsG1ZhQ1LK5euxSZZxu+FFmXc6l+Q+gVpe
rkdv5HaJGfTOiNpGc70xq1wMbC9VSFhy53lWBliM+bMft28HUtJSfoXJh8EcvtX4
pb8ImuclHlYWI3NMhxs2hb+hh0fBbAvHauCIYodzF5XbDZ1L63pgKHOLH1FWKOoW
8KKmI9WeGbP5U2Jvw+sWTBDvlVSPuUddLccN4sPbVF3RF3R44O6msiuP3ELgfOnr
II4FB3erwkNvmdu/XXMT
=E8el
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rhammond.vcf
Type: text/x-vcard
Size: 234 bytes
Desc: not available
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20110208/7d0249fa/attachment.vcf>
More information about the openssh-unix-dev
mailing list