cmd

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIllegal added in v1.3.6

func CheckIllegal(args ...string) bool

func Exec

func Exec(cmdStr string) (string, error)

func ExecCronjobWithTimeOut added in v1.2.0

func ExecCronjobWithTimeOut(cmdStr string, workdir string, timeout time.Duration) (string, error)

func ExecScript added in v1.6.0

func ExecScript(scriptPath, workDir string) (string, error)

func ExecWithCheck added in v1.3.6

func ExecWithCheck(name string, a ...string) (string, error)

func ExecWithTimeOut added in v1.1.0

func ExecWithTimeOut(cmdStr string, timeout time.Duration) (string, error)

func Execf

func Execf(cmdStr string, a ...interface{}) (string, error)

func HasNoPasswordSudo added in v1.1.2

func HasNoPasswordSudo() bool

func SudoHandleCmd added in v1.3.0

func SudoHandleCmd() string

func Which added in v1.5.0

func Which(name string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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