No description or website provided.
Go Shell Makefile Perl
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmd/go-timeout
test
tool
.travis.yml
LICENSE
Makefile
README.md
timeout.go
timeout_test.go

README.md

timeout

Build Status Coverage Status MIT License

Timeout invocation.

Description

Run a given command with a time limit.

Disclaimer

This software is still alpha quality. We may change APIs without notice.

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