shell

package
v1.4.21 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Overview

+build !windows !linux !darwin

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSystemShellPath

func GetSystemShellPath(path string) []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

func (*Shell) StartAndWait

func (s *Shell) StartAndWait()

StartAndWait starts a system shell then waits for it to complete

Directories

Path Synopsis
Package pty provides functions for working with Unix terminals.
Package pty provides functions for working with Unix terminals.

Jump to

Keyboard shortcuts

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