A standalone implementation of the timeout
command.
macOS does not include the GNU Coreutils timeout
command by default. While you can install the full coreutils package via Homebrew, this introduces many unnecessary commands and potential path conflicts.
This project provides a standalone, lightweight timeout
command implementation that allows you to use timeout functionality without installing the entire GNU Coreutils suite.
brew install aisk/homebrew-tap/timeout
make
sudo cp timeout /usr/local/bin/
# Run command with 5 second timeout
timeout 5s long-running-command
# 2 minute timeout
timeout 2m backup-script.sh
make # Compile
make clean # Clean build artifacts
make format # Format code