Re: [python-win32] remote copy with compress/decompress

2004-12-15 Thread Jens B. Jorgensen
[EMAIL PROTECTED] wrote: Hello Jens, hello all, thanks for your replay. I tried your solution first and get some errors. Independing of the size in socket.recv and f.read I allways get an empty datastring after 1770 bytes. But I found a similiar solution here http://mail.python.org/pipermail/pytho

Re: [python-win32] remote copy with compress/decompress

2004-12-15 Thread python
Hello Jens, hello all, thanks for your replay. I tried your solution first and get some errors. Independing of the size in socket.recv and f.read I allways get an empty datastring after 1770 bytes. But I found a similiar solution here http://mail.python.org/pipermail/python-list/2002-July/111754.

Re: [python-win32] remote copy with compress/decompress

2004-12-13 Thread Jens B. Jorgensen
Well, this is pretty easy to do. The server side would look like this import socket, sys, pickle s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind(('', )) s.listen(5) while True : clientsock, clientaddr = s.accept() # read size of file file_size = pickle.load(clientsock.make

[python-win32] remote copy with compress/decompress

2004-12-13 Thread python
Hello, I'm wondering if i try a good solution for the following problem: We have an old DOS Application running on a W2K-Server which uses normal DOS-print and a workstation(w2k) in an outlet connected to the server via VPN. The workstation uses remote desktop to run the software and prints to LP