shell

package
v0.0.0-...-dddd691 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CMD_Flag_Start = 1
	CMD_Flag_Out   = 2
	CMD_Flag_Err   = 3
	CMD_Flag_Over  = 4
)

Variables

This section is empty.

Functions

func Exec

func Exec(cmds ...string) (outMsg, errMsg []byte, e error)

func ExecCommand

func ExecCommand(handler func(string, int), commandName string, params ...string) (resStr, errStr string, err error)

func ExecCommandWithPipe

func ExecCommandWithPipe(cmds []string, out, err io.Writer, in io.Reader) (e error)

func ExecCommandWithPipeAsync

func ExecCommandWithPipeAsync(cmds []string, out, err io.Writer, in io.Reader) (cmd *exec.Cmd, e error)

func KillProcess

func KillProcess(processName string) (killedProgress []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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