Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-07-2006, 02:30 PM   #1
Registered: Sep 2006
Posts: 57

Rep: Reputation: 15
Multithreaded python script calls the COMMAND LINE

I 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 all the request, or each thread creates a one command line process and executes the command? For some reason I am getting "File '1' is alread exists, Do you want to overwrite [y/n]?" I have to manually enter 'y' or 'n' for the script to complete

Last edited by jCash; 12-07-2006 at 02:34 PM.
Old 12-08-2006, 08:09 AM   #2
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
How do you call the command-line app, and what version of Python are you using?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
works on command line but not in bash script tara Linux - General 7 02-09-2009 03:57 AM
bash script 'for each command line argument' true_atlantis Linux - Newbie 3 01-28-2009 01:51 PM
bash syntax when envoking tar command in python script tangle Programming 4 02-04-2006 03:22 PM
How to execute a command line in a shell script orgazmo Programming 5 05-09-2005 09:16 AM
stopping a command-line program from python kernelpanicguy Programming 0 09-08-2003 03:29 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration