shell

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCtlShell

func ExecCtlShell(stop chan byte, name string, s ...string) (string, error)

ExecCtlShell 可手动结束的 shell命令

func ExecShell

func ExecShell(name string, s ...string) (string, error)

ExecShell 执行 shell语句

func ExecShellQuit

func ExecShellQuit(name string, s ...string) (string, error)

func MachineCode

func MachineCode() string

MachineCode 利用硬件信息 生成token

Types

type CmdResponse

type CmdResponse struct {
	Stdout, StdErr []byte
}

func CmdRun

func CmdRun(name string, args ...string) (CmdResponse, error)

CmdRun 执行 shell语句,并返回 response 结构

Jump to

Keyboard shortcuts

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