[Pythonmac-SIG] Off-topic : /dev/tcp
Philippe de Rochambeau
philippe at wwphi.net
Tue Mar 30 14:44:27 EST 2004
The book "Linux shell scripting with Bash" says that you can open
network connections with /dev/tcp as in
exec 3<> /dev/tcp/localhost/80
The author then gives an example in shell script of how to use /dev/tcp
to connect to a webserver.
I just wanted to investigating this as an alternative to a Python +
httplib + wxWindows script which I wrote.
Philippe
On 30 mars 04, at 18:20, Bob Ippolito wrote:
> On Mar 30, 2004, at 10:59 AM, Philippe de Rochambeau wrote:
>
>> I know this has nothing to do with MacPython, but does anyone know
>> what the Darwin equivalent to Linux's /dev/tcp is ?
>
> How about a quick explanation of what you would like to do with it?
> Chances are, there isn't some "thing" that is 1:1 with /dev/tcp in
> Darwin anyways (I also don't know what /dev/tcp does off the top of my
> head).
>
> -bob
>
More information about the Pythonmac-SIG
mailing list