Java org.apache.commons.net.bsd RCommandClient fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.net.bsd RCommandClient fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.net.bsd RCommandClient.

The text is from its open source code.

Constructor

RCommandClient()
The default RCommandClient constructor.

Method

voidconnect(InetAddress host)
Opens a Socket connected to a remote host at the current default port and originating from the current host at a system assigned port.
voiddisconnect()
Disconnects from the server, closing all associated open sockets and streams.
InputStreamgetErrorStream()
Returns the InputStream from which the standard error of the remote process can be read if a separate error stream is requested from the server.
InputStreamgetInputStream()
Returns the InputStream from which the standard outputof the remote process can be read.
OutputStreamgetOutputStream()
Returns the OutputStream through which the standard input of the remote process can be written.
booleanisConnected()
Returns true if the client is currently connected to a server.
voidrcommand(String localUsername, String remoteUsername, String command)
Same as rcommand(localUsername, remoteUsername, command, false);
voidrexec(String username, String password, String command, boolean separateErrorStream)
Remotely executes a command through the rexecd daemon on the server to which the RExecClient is connected.