I have python script does ftp download in a multi threaded way. Each
thread downloads a file, close the file, calls the comman line to
convert the .doc to pdf. Command line should go ahead and convert the
file. My question is, when each thread calls the command line, does one
command line process
On 7 dic, 17:36, johnny [EMAIL PROTECTED] wrote:
I have python script does ftp download in a multi threaded way. Each
thread downloads a file, close the file, calls the comman line to
convert the .doc to pdf. Command line should go ahead and convert the
file. My question is, when each thread
[EMAIL PROTECTED] wrote:
That depends on how you invoke it: os.system creates a new shell which
in turn creates a new process; the spawn* functions do that directly.
I am using os.system. Here is my code
import ftplib, posixpath, threading
from TaskQueue import TaskQueue
def worker(tq):
At Thursday 7/12/2006 19:13, johnny wrote:
Anyway, if you have many conversion processes running, you should pass
them unique file names to avoid conflicts.
Where does the '1' name come from? If it's you, don't use a fixed name
- the tempfile module may be useful.
I am giving unique name