_shellUtils

package
v0.0.0-...-08474b0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExeShell

func ExeShell(cmdStr string) (string, error)

func ExeShellCallback

func ExeShellCallback(ch chan int, cmdStr, dir string,
	fun func(s string, msg websocket.Message), msg websocket.Message) (err error)

func ExeShellInDir

func ExeShellInDir(cmdStr string, dir string) (ret string, err error)

func ExeShellInDirWithPid

func ExeShellInDirWithPid(cmdStr string, dir string) (ret string, err error, pid int)

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 ExeShellWithPid(cmdStr string) (string, error, int)

func ExeSysCmd

func ExeSysCmd(cmdStr string) (string, error)

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.

Jump to

Keyboard shortcuts

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