Rich Freeman on 2 Sep 2011 05:29:34 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Bash [net] redirection


On Fri, Sep 2, 2011 at 7:41 AM, Eric at Lucii.org <eric@lucii.org> wrote:
> On 09/01/2011 03:54 PM, JP Vossen wrote:
>>> Date: Wed, 31 Aug 2011 18:59:29 -0400
>>> From: Rich Freeman<r-plug@thefreemanclan.net>
>>>
>>> On Aug 31, 2011 2:37 PM, "Gavin W. Burris"<bug@sas.upenn.edu>  wrote:
>>>> >  # bash 0</dev/tcp/YOUR_CLIENT_IP/3333 1>&0 2>&0
>>>> >
>>> Wow - never knew linux supported this. That seems like something out of
>>> plan9!
>>
>> *bash* supports it, if it is compiled in (--enable-net-redirection), which it is
>> NOT by default on Debian and derivatives!
>
> I tried it between two Ubuntu systems (Lucid and Maverick) and it worked.
>

Looks like Gentoo enables it under the net use flag, and it is enabled
by default.

In any case, not very plan9-ish to not have it at the OS level (and of
course plan9 would put it under /net).

Rich
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug