1

I need to execute a background job in Python and do not wait or block.

How? e.g.

os.system('my long job') 

The above will block. I want to fire and forget.

How can this be done in Python?

Thanks

Carlos Man
  • 348
  • 3
  • 10
Tampa
  • 75,446
  • 119
  • 278
  • 425
  • Take a look on this: http://askubuntu.com/questions/106351/running-programs-in-the-background-from-terminal Works as well. – rafaeldefazio Jan 28 '15 at 16:22
  • The subprocess module might be what oyu are looking for https://docs.python.org/2/library/subprocess.html#module-subprocess – Daniel Jan 28 '15 at 16:53

0 Answers0