Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

License

NotificationsYou must be signed in to change notification settings

Songmu/timeout

Repository files navigation

Build StatusCoverage StatusMIT LicenseGoDoc

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

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp