command

package
v9.1.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package command contains code to run external commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupMQM

func LookupMQM() (int, int, error)

LookupMQM looks up the UID & GID of the mqm user

func Run

func Run(name string, arg ...string) (string, int, error)

Run runs an OS command. On Linux it waits for the command to complete and returns the exit status (return code). Do not use this function to run shell built-ins (like "cd"), because the error handling works differently

func RunAsMQM

func RunAsMQM(name string, arg ...string) (string, int, error)

RunAsMQM runs the specified command as the mqm user

func RunCmd

func RunCmd(cmd *exec.Cmd) (string, int, error)

RunCmd runs an OS command. On Linux it waits for the command to complete and returns the exit status (return code). Do not use this function to run shell built-ins (like "cd"), because the error handling works differently

Types

This section is empty.

Jump to

Keyboard shortcuts

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