Back to

Package osutil

Latest Go to latest
Published: Aug 29, 2019 | License: AGPL-3.0 | Module:


Package Files

func CommandWithTimeout

func CommandWithTimeout(command *exec.Cmd, timeout time.Duration) ([]byte, error)

CommandWithTimeout runs a command but stops it if it does not finish within the timout above.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier