runTimeKit

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelayExecCmd added in v0.3.1

func DelayExecCmd(nextSecond int, command string) (string, error)

DelayExecCmd 延迟执行命令

  • @param nextSecond 下次执行秒数
  • @param command 执行的命令

func ExecuteCmd

func ExecuteCmd(shell string, parameter ...string) (string, error)

ExecuteCmd 执行shell命令 *

  • 如要执行 `ls -l /home/user` 传值应该是 name=ls,arg="-l","/home/user"
  • @param shell 命令
  • @param parameter 参数
  • @return string,err 终端返回的信息,错误信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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