I wanted to stop a executed command after a specified timespan.
You have to install coreutils to get the timeout command.
Brew on Mac:
brew install coreutils
Use timeout:
gtimeout 5 whois google.com gtimeout SECONDS COMMAND
I wanted to stop a executed command after a specified timespan.
You have to install coreutils to get the timeout command.
Brew on Mac:
brew install coreutils
Use timeout:
gtimeout 5 whois google.com gtimeout SECONDS COMMAND