timeout 30 command
Category: Administration
Run command and kill it if it runs longer than 30 seconds