Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Dir is the directory where the file that registers an execution will be saved. // If you're having problems (usually with older versions of Linux) try setting it to /var/run Dir = "/run" // ErrOtherInstanceRunning is the error that Register() will return if another instance // with the same alias is running. ErrOtherInstanceRunning = errors.New("there is another instance of the program running") )
Functions ¶
Types ¶
type Process ¶
Process is an extension of os.Process
func Find ¶
Find looks for a running instance of a process that have the alias provided. It returns nil if no process with that alias was found.
func (*Process) StderrPipe ¶
func (p *Process) StderrPipe() (io.ReadCloser, error)
StderrPipe creates a pipe to the stderr of the process
func (*Process) StdinPipe ¶
func (p *Process) StdinPipe() (io.WriteCloser, error)
StdinPipe creates a pipe to the stdin of the process
func (*Process) StdoutPipe ¶
func (p *Process) StdoutPipe() (io.ReadCloser, error)
StdoutPipe creates a pipe to the stdout of the process
Click to show internal directories.
Click to hide internal directories.