I’m trying to kill a process (specifically iChat). On the command line, I use these commands: Then: However, I’m not exactly sure how to translate these commands over to Python. Answer Assuming you’re on a Unix-like platform (so that ps -A exists), gives you ps -A’s output in the out variable (a string). You can break it down into lines