MCPcopy Index your code
hub / github.com/Splinter0/RelayBox / RunCommand

Function RunCommand

pkg/system/executil/exec.go:11–20  ·  view source on GitHub ↗
(cmdStr string)

Source from the content-addressed store, hash-verified

9)
10
11func RunCommand(cmdStr string) error {
12 fmt.Println(strings.Split(cmdStr, " "))
13 cmd := exec.Command(
14 strings.Split(cmdStr, " ")[0],
15 strings.Split(cmdStr, " ")[1:]...,
16 )
17 cmd.Stdout = os.Stdout
18 cmd.Stderr = os.Stderr
19 return cmd.Run()
20}
21
22func RunCommandPowershell(cmdStr string) error {
23 cmd := exec.Command(

Callers 2

disableSMBMethod · 0.92
enableSMBMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected