Documentation ¶
Index ¶
- Constants
- func Kill(pid2Name interface{}) error
- func KillName(name string) error
- func KillPid(pid int) error
- func OpenErrorFile(filename string) *os.File
- func RunProcess(cmd interface{}, stdin *os.File, stdout *os.File, stderr *os.File, ...) (*os.Process, error)
- func ShowDebugConsole() *os.File
- func System(cmdArg interface{}, env []string, stdout, stderr io.Writer, stdin io.Reader) (syscall.WaitStatus, error)
- type ProcessOpt
- type Shell
- func (me *Shell) GetCmd() *exec.Cmd
- func (me *Shell) GetPid() int
- func (me *Shell) IsClosed() bool
- func (me *Shell) PCheck(sec int)
- func (me *Shell) PClose() syscall.WaitStatus
- func (me *Shell) PRead(b []byte) (int, error)
- func (me *Shell) PReadLine() (string, error)
- func (me *Shell) PReadLineStdErr() (string, error)
- func (me *Shell) PReadStdErr(b []byte) (int, error)
- func (me *Shell) PWrite(p []byte) (int, error)
- func (me *Shell) SetAutoClose(v bool)
- func (me *Shell) Signal(sig os.Signal, pid ...int)
- func (me *Shell) Start() error
Constants ¶
View Source
const DAEMON_NO = "--run"
View Source
const DAEMON_WORK_NAME = "--work"
Variables ¶
This section is empty.
Functions ¶
func OpenErrorFile ¶
func RunProcess ¶
func ShowDebugConsole ¶
Types ¶
type ProcessOpt ¶
type Shell ¶
type Shell struct { Stdin io.WriteCloser Stdout io.ReadCloser // contains filtered or unexported fields }
func NewProcess ¶
func (*Shell) PClose ¶
func (me *Shell) PClose() syscall.WaitStatus
func (*Shell) PReadLineStdErr ¶
func (*Shell) SetAutoClose ¶
Click to show internal directories.
Click to hide internal directories.