Class rlogin


  • public final class rlogin
    extends java.lang.Object
    This is an example program demonstrating how to use the RLoginClient class. This program connects to an rlogin daemon and begins to interactively read 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 login process and writing the remote stdout and stderr to local stdout. If you don't have .rhosts or hosts.equiv files set up, the rlogin daemon will prompt you for a password.

    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.

    JVM's using green threads will likely have problems if the rlogin daemon requests a password. This program is merely a demonstration and is not suitable for use as an application, especially given that it relies on line-buffered input from System.in. The best way to run this example is probably from a Windows DOS box into a UNIX host.

    Example: java rlogin myhost localuser remoteuser vt100

    Usage: rlogin

    • Constructor Summary

      Constructors 
      Constructor Description
      rlogin()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • rlogin

        public rlogin()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)