command

package
v0.0.0-...-67d91c4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(timeOut time.Duration, cmdName string, arg ...string) (bool, error)

Types

type SysCmd

type SysCmd struct {
	Command   string
	Pid       int
	OutString chan string
	End       chan bool
}

func NewCmd

func NewCmd(command string) *SysCmd

func (*SysCmd) Kill

func (syscmd *SysCmd) Kill() error

func (*SysCmd) Listener

func (syscmd *SysCmd) Listener()

func (*SysCmd) ListenerOut

func (syscmd *SysCmd) ListenerOut()

func (*SysCmd) Run

func (syscmd *SysCmd) Run(arg ...string)

Jump to

Keyboard shortcuts

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