proc

package
v0.0.0-...-5c5f118 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetShell

func GetShell() string

func SearchBinary

func SearchBinary(f string) string

SearchBinary searches the binary `f` in current working folder and PATH environment.

func SearchBinaryPath

func SearchBinaryPath(f string) string

SearchBinaryPath searches the binary `f` in PATH environment.

Types

type Process

type Process struct {
	exec.Cmd
	PPid int
}

Process is the struct for a single process.

func NewProcess

func NewProcess(path string, args []string, environment ...[]string) *Process

NewProcess creates and returns a new Process.

func NewProcessCmd

func NewProcessCmd(cmd string, environment ...[]string) *Process

NewProcessCmd creates and returns a process with given command and optional environment variable array.

Jump to

Keyboard shortcuts

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