http://askubuntu.com – I need to execute shell command in python program (I have ubuntu). More specifically I want to create graph using graphviz in python script. My code is os.system("dot -Tpng graph.dot -o graph.png") It does not work, but if I just type "dot -Tpng graph.dot -o graph.png" in command line then everything is fine. Do you know what the problem? (HowTos)