scmd

package
v1.4.13 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scmd

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

func NewScmd

func NewScmd(name string, arg ...string) *Scmd

func (*Scmd) GetPid

func (m *Scmd) GetPid() (pid int)

func (*Scmd) Start

func (m *Scmd) Start() (stdout chan []byte, stderr chan []byte, er error)

func (*Scmd) StartTimeoutWaitOutput

func (m *Scmd) StartTimeoutWaitOutput(timeout time.Duration) (stdout []byte, stderr []byte, er error)

func (*Scmd) StartWaitOutput

func (m *Scmd) StartWaitOutput() (stdout []byte, stderr []byte, er error)

阻塞调用, 直到程序结束才会返回

func (*Scmd) Stop

func (m *Scmd) Stop() (er error)

Jump to

Keyboard shortcuts

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