cmd

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 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 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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