On Wednesday, June 3, 2015 at 6:56:47 PM UTC-5, sohca...@gmail.com wrote:
> On Wednesday, June 3, 2015 at 4:45:52 PM UTC-7, M2 wrote:
> > On Wednesday, June 3, 2015 at 5:34:31 PM UTC-5, Waffle wrote:
> > > You think "(f)" makes a tuple, but it does not.
> > > the parentesis is not the tuple constructor, the comma is
> > > try:
> > > t=thread.start_new_thread(proc,(f,))
> > 
> > Thanks for the pointer waffle.
> > The program executes now but still not the way I want it.
> > I think I will need to tweak it a bit as the code is executing with the 
> > same argument from the file /tmp/python/1 multiple times whereas it needs 
> > to be executed only ones but in parallel. Let me figure that out.
> > 
> > 
> > Once again thanks for all the help provided on this thread.
> 
> Check your usages of "line" and "f".  You have spots where you probably meant 
> "line" instead of "f", and others where you have "f" where you probably meant 
> "line".

Here is my logic:
f is where the entire file is getting loaded
which is also passed as argument in the function proc
line has a single line from the file which is then stripped off the new line 
character and assigned to com2 variable which helps in using it in the 
subprocess.call

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to