Dealing with communications across programs, processes or even threads can be a real pain in the patella. Each situation usually calls for something slightly different and has to work with a limited set of options. On top of that, a lot of tutorials I see are people simply starting one program from inside the other (for … [Read more…]
Python is awesome, and can pretty much do everything you ever wanted, but on rare occasion, you may want to call an external program. The original way to do this with Python was to use os.system.
return_code = os.system("echo 'May the force be with you'")
The message “May the force be with you” would be printed to the terminal via stdout, and the return … [Read more…]