Tuesday, December 27, 2011

Process kill

In python if we need to kill a running process we need to run the following command.

import os
os.system("taskkill /im "process_name" /f")

just give the name of the process that is running and it should kill it. we need this kind of setup when we try to kill all the existing process before launching a one.

No comments:

Post a Comment