cmdKit

package
v2.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(name string, args ...string) ([]byte, error)

Execute 执行命令(会阻塞直到命令结束)

func ExecuteToString

func ExecuteToString(name string, args ...string) (string, error)

ExecuteToString 执行命令(会阻塞直到命令结束)

func NewCommand

func NewCommand(setpgid bool, deathSig syscall.Signal, name string, args ...string) *exec.Cmd

NewCommand

Golang SysProcAttr.Pdeathsig方法代码示例 https://vimsky.com/examples/detail/golang-ex-syscall-SysProcAttr-Pdeathsig-method.html

@param setpgid @param deathSig

Types

This section is empty.

Jump to

Keyboard shortcuts

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