Class rexec
- java.lang.Object
-
- org.apache.commons.net.examples.unix.rexec
-
public final class rexec extends java.lang.Object
This is an example program demonstrating how to use the RExecClient class. This program connects to an rexec server and requests that the given command be executed on the server. It then reads input from stdin (this will be line buffered on most systems, so don't expect character at a time interactivity), passing it to the remote process and writes the process stdout and stderr to local stdout.Example: java rexec myhost myuser mypassword "ps -aux"
Usage: rexec
-
-
Constructor Summary
Constructors Constructor Description rexec()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
-