shell

package
v0.0.6-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSystemShellPath

func GetSystemShellPath() []string

GetSystemShellPath - Find bash or sh

func Start

func Start(command string) error

Start - Start a process

Types

type Shell

type Shell struct {
	ID      uint64
	Command *exec.Cmd
	Stdout  io.ReadCloser
	Stdin   io.WriteCloser
}

Shell - Struct to hold shell related data

func StartInteractive

func StartInteractive(tunnelID uint64, command []string, enablePty bool) *Shell

StartInteractive - Start a shell

Jump to

Keyboard shortcuts

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