Documentation ¶
Index ¶
- func ExeShell(cmdStr string) (string, error)
- func ExeShellCallback(ch chan int, cmdStr, dir string, fun func(s string, msg websocket.Message), ...) (err error)
- func ExeShellInDir(cmdStr string, dir string) (ret string, err error)
- func ExeShellInDirWithPid(cmdStr string, dir string) (ret string, err error, pid int)
- func ExeShellWithEnvVarsAndOutputInDir(cmdStr, dir string, envVars []string) ([]string, error)
- func ExeShellWithOutput(cmdStr string) ([]string, error)
- func ExeShellWithOutputInDir(cmdStr string, dir string) ([]string, error)
- func ExeShellWithPid(cmdStr string) (string, error, int)
- func GetProcess(app string) (string, error)
- func KillProcess(app string) (string, error)
- func KillProcessById(pid int)
- func Send(to, subject, tmpl string, mp map[string]string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExeShellCallback ¶
func ExeShellInDir ¶
func ExeShellInDir(cmdStr string, dir string) (ret string, err error)
func ExeShellInDirWithPid ¶
func ExeShellWithEnvVarsAndOutputInDir ¶
func ExeShellWithEnvVarsAndOutputInDir(cmdStr, dir string, envVars []string) ([]string, error)
func ExeShellWithOutput ¶
func ExeShellWithOutput(cmdStr string) ([]string, error)
func ExeShellWithOutputInDir ¶
func ExeShellWithOutputInDir(cmdStr string, dir string) ([]string, error)
func ExeShellWithPid ¶
func GetProcess ¶
func GetProcess(app string) (string, error)
func KillProcess ¶
func KillProcess(app string) (string, error)
func KillProcessById ¶
func KillProcessById(pid int)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.