3 ms·
More generally, does this mean we can open a socket like a file? For example, in Python, can we do: with open('/dev/tcp/127.0.0.1/8000') as f: d =
by supahfly_remix 6y ago
More generally, does this mean we can open a socket like a file? For example, in Python, can we do:
with open('/dev/tcp/127.0.0.1/8000') as f:
d = f.read()
...
- patrec 6y agoNo this is a special hack in bash itself, not one of the dumbed-down-plan-9 style abstractions in the linux filesystem.