GeezerVison is showing github.com — GitHub - Songmu/timeout: Timeout invocation. Go porting of GNU timeout and able to use as Go package
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
|
Repository files navigation

Timeout invocation. Go porting of GNU timeout
Run a given command with a time limit.
tio := &timeout.Timeout{
Cmd: exec.Command("perl", "-E", "say 'Hello'"),
Duration: 10 * time.Second,
KillAfter: 5 * time.Second,
}
exitStatus, stdout, stderr, err := tio.Run()
Songmu
About
Timeout invocation. Go porting of GNU timeout and able to use as Go package
Resources
Stars
76 stars
Watchers
3 watching
Forks