Package com.jcraft.jsch
Class ChannelExec
java.lang.Object
com.jcraft.jsch.Channel
com.jcraft.jsch.ChannelSession
com.jcraft.jsch.ChannelExec
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jcraft.jsch.Channel
Channel.MyPipedInputStream, Channel.PassiveInputStream, Channel.PassiveOutputStream
-
Field Summary
FieldsFields inherited from class com.jcraft.jsch.ChannelSession
agent_forwarding, env, pty, tcol, terminal_mode, thp, trow, ttype, twp, xforwading
Fields inherited from class com.jcraft.jsch.Channel
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
init()
void
setCommand
(byte[] command) void
setCommand
(String command) void
setErrStream
(OutputStream out) void
setErrStream
(OutputStream out, boolean dontclose) void
start()
Methods inherited from class com.jcraft.jsch.ChannelSession
run, sendRequests, setAgentForwarding, setEnv, setEnv, setEnv, setPty, setPtySize, setPtyType, setPtyType, setTerminalMode, setXForwarding
Methods inherited from class com.jcraft.jsch.Channel
addRemoteWindowSize, close, connect, connect, del, disconnect, disconnect, eof, eof_remote, 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, write, write_ext
-
Field Details
-
command
byte[] command
-
-
Constructor Details
-
ChannelExec
public ChannelExec()
-
-
Method Details
-
start
- Overrides:
start
in classChannel
- Throws:
JSchException
-
setCommand
-
setCommand
public void setCommand(byte[] command) -
init
- Overrides:
init
in classChannel
- Throws:
JSchException
-
setErrStream
-
setErrStream
-
getErrStream
- Throws:
IOException
-