public class ChannelExec extends ChannelSession
Channel.MyPipedInputStream, Channel.PassiveInputStream, Channel.PassiveOutputStream
Modifier and Type | Field and Description |
---|---|
(package private) byte[] |
command |
agent_forwarding, env, pty, tcol, terminal_mode, thp, trow, ttype, twp, xforwading
close, connected, connectTimeout, eof_local, eof_remote, exitstatus, id, index, io, lmpsize, lwsize, lwsize_max, notifyme, open_confirmation, recipient, reply, rmpsize, rwsize, SSH_MSG_CHANNEL_OPEN_CONFIRMATION, SSH_MSG_CHANNEL_OPEN_FAILURE, SSH_MSG_CHANNEL_WINDOW_ADJUST, SSH_OPEN_ADMINISTRATIVELY_PROHIBITED, SSH_OPEN_CONNECT_FAILED, SSH_OPEN_RESOURCE_SHORTAGE, SSH_OPEN_UNKNOWN_CHANNEL_TYPE, thread, type
Constructor and Description |
---|
ChannelExec() |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getErrStream() |
(package private) void |
init() |
void |
setCommand(byte[] command) |
void |
setCommand(java.lang.String command) |
void |
setErrStream(java.io.OutputStream out) |
void |
setErrStream(java.io.OutputStream out,
boolean dontclose) |
void |
start() |
run, sendRequests, setAgentForwarding, setEnv, setEnv, setEnv, setPty, setPtySize, setPtyType, setPtyType, setTerminalMode, setXForwarding
addRemoteWindowSize, close, connect, connect, del, disconnect, disconnect, eof_remote, eof, genChannelOpenPacket, getChannel, getChannel, getData, getExitStatus, getExtInputStream, getId, getInputStream, getOutputStream, getRecipient, getSession, isClosed, isConnected, isEOF, sendChannelOpen, sendOpenConfirmation, sendOpenFailure, sendSignal, setExitStatus, setExtOutputStream, setExtOutputStream, setInputStream, setInputStream, setLocalPacketSize, setLocalWindowSize, setLocalWindowSizeMax, setOutputStream, setOutputStream, setRecipient, setRemotePacketSize, setRemoteWindowSize, setSession, write_ext, write, write
public void start() throws JSchException
start
in class Channel
JSchException
public void setCommand(java.lang.String command)
public void setCommand(byte[] command)
void init() throws JSchException
init
in class Channel
JSchException
public void setErrStream(java.io.OutputStream out)
public void setErrStream(java.io.OutputStream out, boolean dontclose)
public java.io.InputStream getErrStream() throws java.io.IOException
java.io.IOException