timeout

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

  • Owner: Songmu/timeout
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

Main metrics

Overview
Name With OwnerSongmu/timeout
Primary LanguageGo
Program languageMakefile (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2015-03-07 16:18:25
Pushed At2019-04-21 11:11:39
Last Commit At2019-04-21 20:11:30
Release Count7
Last Release Namev0.4.0 (Posted on )
First Release Namev0.0.1 (Posted on )
用户参与
Stargazers Count74
Watchers Count4
Fork Count4
Commits Count145
Has Issues Enabled
Issues Count3
Issue Open Count1
Pull Requests Count19
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private