Esempio n. 1
0
// ShellInteractive starts a new interactive shell in a chroot and returns a cross-interface to its pseudo-terminal.
func (ss *XShell) ShellInteractive() (xpty circuit.X, err error) {
	return xyexec.XCommand("sh", true, "-i").StartPTY([]string{"sane"})
}
Esempio n. 2
0
// Tail …
// XXX: Varargs doesn't work in cross-calls. Fix this.
func (ss *XShell) Tail(arg ...string) (xstdin circuit.X, xstdout, xstderr circuit.X, err error) {
	return xyexec.XCommand("tail", false, arg...).Start()
}
Esempio n. 3
0
// Shell starts a new shell in a chroot and returns a cross-interface to its standard input, output and error.
func (ss *XShell) Shell() (xstdin circuit.X, xstdout, xstderr circuit.X, err error) {
	return xyexec.XCommand("sh", true).Start()
}