镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
SongmuPublic

About

Timeout invocation. Go porting of GNU timeout and able to use as Go package

Resources

Stars

76 stars

Watchers

3 watching

Forks

Repository files navigation

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

About

Timeout invocation. Go porting of GNU timeout and able to use as Go package

Resources

Stars

76 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages