sys_exec

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCmd

func BuildCmd(cmdStr string) *exec.Cmd

func ConfigureCmdLogging added in v0.6.1

func ConfigureCmdLogging(cmd *exec.Cmd, fn func(scanner *bufio.Scanner))

func KillProcess

func KillProcess(cmd *exec.Cmd, opts *KillProcessOptions) error

func SetPgid

func SetPgid(cmd *exec.Cmd)

Types

type KillProcessOptions

type KillProcessOptions struct {
	Timeout time.Duration
	Force   bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL