コード例 #1
0
ファイル: shell.go プロジェクト: hanjin8307/circuit
// 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"})
}
コード例 #2
0
ファイル: shell.go プロジェクト: hanjin8307/circuit
// 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()
}
コード例 #3
0
ファイル: shell.go プロジェクト: hanjin8307/circuit
// 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()
}