exec

package
v0.0.0-...-d098e83 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandAsyncStdout

func CommandAsyncStdout(args string, funcStdout FuncAsyncStd, funcStderr FuncAsyncStd) (err error)

args:"chmod +x /xx/xx/x.sh" funcStdout nil:disable stdout funcStderr nil:disable stderr

func ScriptAsyncStdout

func ScriptAsyncStdout(funcStdout FuncAsyncStd, funcStderr FuncAsyncStd, scriptPathFile string, arg ...string) (err error)

ScriptAsyncStdout(funcStdout, funcStderr, "/xxx/xxx.sh", "arg1", "arg2", "arg3", "arg4")

Types

type FuncAsyncStd

type FuncAsyncStd func(data string) int

Jump to

Keyboard shortcuts

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