exec

package
v12.90.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package exec provides methods for executing commands

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(command string, args ...string) error

Run executes command

Example
Output:

func RunAsUser

func RunAsUser(user, logFile, command string, args ...string) error

RunAsUser runs command as a given user

Example
Output:

func Sudo

func Sudo(user string, args ...string) error

Sudo executes command with sudo

Example
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

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