Subprocess with Timeout February 27, 2014 wkettler Leave a comment The following code can be used to execute a command at the default shell with a defined timeout. View the code on Gist.