Timeout invocation. Go porting of GNU timeout and able to use as Go package
Go Makefile Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_tools
cmd/go-timeout
testdata
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
Makefile
README.md
appveyor.yml
exitstatus.go
timeout.go
timeout_test.go
timeout_unix.go
timeout_unix_test.go
timeout_windows.go
version.go

README.md

timeout

Build Status Coverage Status MIT License GoDoc

Timeout invocation. Go porting of GNU timeout

Description

Run a given command with a time limit.

Synopsis

tio := &timeout.Timeout{
	Cmd:            exec.Command("perl", "-E", "say 'Hello'"),
	Duration:       10 * time.Second,
	KillAfter:      5 * time.Second,
}
exitStatus, stdout, stderr, err := tio.Run()

Author

Songmu