Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## examples.unix
Class rshell

    java.lang.Object
      examples.unix.rshell

    public final class rshell

extends Object

This is an example program demonstrating how to use the RCommandClient class. This program connects to an rshell daemon 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.

On Unix systems you will not be able to use the rshell capability unless the process runs as root since only root can bind port addresses lower than 1024.

Example: java rshell myhost localusername remoteusername "ps -aux"

Usage: rshell

Constructor Summary
`rshell()`

Method Summary
`static void` | `main(String[] args)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### rshell

    public rshell()

Method Detail

### main

    public static final void main(String[] args)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.