[Texas] Sending data over tcp

Vikram Chhatre crypticlineage at gmail.com
Sat Sep 17 21:19:56 CEST 2011


Hello everyone,

I recently wrote a python script which generates some bash scripts for
data analysis.  Apart from this, I want this script to ask the user
for their name and email address and send it over to my server over a
tcp connection.

There are some example server and client scripts available online and
I was trying to follow this one:
http://wiki.python.org/moin/TcpCommunication

There are several questions I have about this:

1. Where would the server side script reside on the server?
2. How do I set my webserver to listen at a particular port number?
3. When a connection comes in, what will trigger the execution of the
server side script?

I realize that this particular example is only sending some message
back to the client.  But what I want to do is write the incoming
information to a file on the server (in a secure place of course) and
send a message back to the client that their information has been
recorded.

If you have any advice on how to accomplish this, I would highly appreciate it.

Thanks
Vikram


More information about the Texas mailing list