mycmd

package
v0.0.0-...-1107578 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCmdTimeOutBytes

func ExecCmdTimeOutBytes(timeout uint32, name string, args ...string) ([]byte, []byte, error)
timeout: millisecond

return: stdout, stderr, error

func ExecCmdTimeOutString

func ExecCmdTimeOutString(timeout uint32, name string, args ...string) (string, string, error)
timeout: millisecond

return: stdout, stderr, error

func ExecCmdTimeOutStringBash

func ExecCmdTimeOutStringBash(timeout uint32, cmd string) (string, string, error)

func ExecCmdTimeOutStringSplit

func ExecCmdTimeOutStringSplit(timeout uint32, cmd string) (string, string, error)

func GetPidOfProcess

func GetPidOfProcess(cmd string) (int32, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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