Getting the result of a process after exec*()

2007-08-17 Thread AndrewTK
Hi, I am trying to write a Python script that takes a ZIP file from a web form (using CGI) and uses either of the UN*X unzip, gunzip, tar, bunzip2 utilities to expand it. I can use Python to save the script to disk; but processing it is another matter. If for example I have received a *.tar.gz fi

Re: reading from sockets

2006-08-13 Thread AndrewTK
Simon Forman wrote: > So I'm guessing it's something wrong in your java server. Thanks then. I'll keep testing then... Although I don't seem to have netcat on my unit... I'm using a uni computer so I can't install stuff... but I'm guessing what I wrote is something like a basic-basic thingy that

Re: reading from sockets

2006-08-13 Thread AndrewTK
Simon Forman wrote: > So I'm guessing it's something wrong in your java server. Thanks then. I'll keep testing then... -- http://mail.python.org/mailman/listinfo/python-list

Re: reading from sockets

2006-08-12 Thread AndrewTK
Follow up the actual python code is at http://www.dcs.st-and.ac.uk/~atk1/singleclient.py -- http://mail.python.org/mailman/listinfo/python-list

Re: reading from sockets

2006-08-12 Thread AndrewTK
> I'm assuming that your server waits to receive the word 'hello' before > replying with the three strings (first, second, and third)? So once your Nope - actually it's a threaded "server", with the main thread simply dumping network input to the console and command line input being directly dump

reading from sockets

2006-08-10 Thread AndrewTK
Hello, I'm trying to read data from a socket and I'm not seeing what I'm expecting it seems to skip the first line of data. I am new to Python and just trying to test what I can do with it... and it's not looking pretty. I have some Python code: [-- #! /usr/bin/py