Documentation ¶
Index ¶
- func Newprogress(dir, name string, arg ...string) (prog *progress, stdout chan []byte, stderr chan []byte, er error)
- type Scmd
- func (m *Scmd) IsStop() bool
- func (m *Scmd) Signal(sig os.Signal) error
- func (m *Scmd) Start() (stdout chan []byte, stderr chan []byte, er error)
- func (m *Scmd) StartTimeoutWaitOutput(timeout time.Duration) (stdout []byte, stderr []byte, er error)
- func (m *Scmd) StartWaitOutput() (stdout []byte, stderr []byte, er error)
- func (m *Scmd) Stop(timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scmd ¶
type Scmd struct {
// contains filtered or unexported fields
}
func NewScmdWithDir ¶ added in v1.0.32
func (*Scmd) StartTimeoutWaitOutput ¶
func (*Scmd) StartWaitOutput ¶
阻塞调用, 直到程序结束才会返回
Click to show internal directories.
Click to hide internal directories.