public interface RemoteSession2 extends RemoteSession
RemoteSession that supports passing environment variables to
commands.| Modifier and Type | Method and Description |
|---|---|
Process |
exec(String commandName,
Map<String,String> environment,
int timeout)
Creates a new remote
Process to execute the given command. |
disconnect, exec, getFtpChannelProcess exec(String commandName, Map<String,String> environment, int timeout) throws IOException
Process to execute the given command. The
returned process's streams exist and are connected, and execution of the
process is already started.commandName - command to executeenvironment - environment variables to pass ontimeout - timeout value, in seconds, for creating the remote processIOException - may be thrown in several cases. For example, on problems
opening input or output streams or on problems connecting or
communicating with the remote host. For the latter two cases,
a TransportException may be thrown (a subclass of
java.io.IOException).Copyright © 2021 Eclipse JGit Project. All rights reserved.