bug-bash
[Top][All Lists]
Advanced

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

Re: No such device or address when opening /dev/fd/<x> on opened /dev/tc


From: konsolebox
Subject: Re: No such device or address when opening /dev/fd/<x> on opened /dev/tcp socket
Date: Tue, 6 Apr 2021 03:55:27 +0800

On Tue, Apr 6, 2021 at 3:38 AM Oğuz <oguzismailuysal@gmail.com> wrote:
>> Yeah. If you have /dev/fd though you have /dev/fd/1 (and even /dev/stdout), 
>> so OP could have done `echo a | tee /dev/fd/1 >/dev/tcp/host/port' instead
>
>
> That should have been `echo a | tee /dev/fd/3 3>&1 >/dev/tcp/host/port'

Nice strategies.


-- 
konsolebox



reply via email to

[Prev in Thread] Current Thread [Next in Thread]