exec

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrBufferCreateFailed creating the buffer failed
	ErrBufferCreateFailed = errors.New("Unable to create the buffer object")

	//ErrScannerCreateFailed creating the scanner failed
	ErrScannerCreateFailed = errors.New("Unable to create the scanner object")

	//ErrReaderCreateFailed creating the reader failed
	ErrReaderCreateFailed = errors.New("Unable to create the reader object")

	//ErrCommandCreateFailed creating the command failed
	ErrCommandCreateFailed = errors.New("Unable to create the command object")

	//ErrExecuteFailed installation package failed
	ErrExecuteFailed = errors.New("The command line failed to execute correctly")
)

Functions

func CreateProcess

func CreateProcess(cmdLine string) error

CreateProcess starts a new detached process

func RunCommand

func RunCommand(cmdLine string, successRegex string, failureRegex string) error

RunCommand executes a command that monitors output for success or failure

func RunCommandEx

func RunCommandEx(cmdLine string, successRegex string, failureRegex string, waitInSec int) error

RunCommandEx executes a command that monitors output for success or failure

func RunCommandEx2

func RunCommandEx2(cmdLine string, successRegex string, failureRegex string, waitInSec int) error

RunCommandEx2 executes a command that monitors output for success or failure

func RunCommandOutput

func RunCommandOutput(cmdLine string) (string, error)

RunCommandOutput executes a command that returns the output

Types

This section is empty.

Jump to

Keyboard shortcuts

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