processes

package
v0.0.0-...-7647e70 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(command string, args ...string) ([]byte, error)

func ExecOut

func ExecOut(out *os.File, command string, args ...string) error

func System32

func System32(file string) string

Types

type Process

type Process struct {
	// contains filtered or unexported fields
}

func NewProcess

func NewProcess(command string, args ...string) *Process

func (*Process) AppendEnv

func (this *Process) AppendEnv(key, value string)

添加环境变量

func (*Process) AppendFile

func (this *Process) AppendFile(file ...*os.File)

添加共享的文件对象

func (*Process) Pid

func (this *Process) Pid() int

func (*Process) SetErr

func (this *Process) SetErr(err *os.File)

func (*Process) SetIn

func (this *Process) SetIn(in *os.File)

func (*Process) SetOut

func (this *Process) SetOut(out *os.File)

func (*Process) SetPwd

func (this *Process) SetPwd(dir string)

func (*Process) Start

func (this *Process) Start() error

开始执行

func (*Process) StartBackground

func (this *Process) StartBackground() error

func (*Process) Wait

func (this *Process) Wait() error

Jump to

Keyboard shortcuts

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