Documentation ¶
Overview ¶
Package execcmd wraps up the os.Process interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecCmd ¶
implementation of IExecCmd with os.Process embed
func NewExecCmd ¶
NewExecCmd returns a new instance of the ExecCmd
func (*ExecCmd) Kill ¶
Kill causes the Process to exit immediately. Kill does not wait until the Process has actually exited. This only kills the Process itself, not any other processes it may have started.
type IExecCmd ¶
type IExecCmd interface { Pid() int //kill the attached child process Kill() error //start the command execution process Start() error //wait for the child to finish Wait() error // sends a signal to the command process Signal(sig os.Signal) error }
IExecCmd is an abstracted interface of os.Process
Click to show internal directories.
Click to hide internal directories.