Detect Command Timeouts using Bash

A common, and often overlooked, need for scripting is addressing hanging, or unresponsive commands. What should your script do if one of it's ste ps takes much, much, much longer than expected? A hanging, or unresponsive, subprocess will result in a hanging job which in turn can prevent oth er jobs from running. Let's spend a bit of time how to address such an need. The 'timeout' command is…