Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Hi all, Im currently having problems running the Runtime.getRuntime().exec("/usr/bin/rlogin") in order for me to get back my command line prompt. So if I log into a terminal called teletubby, then I would be expecting a prompt " teletubby% " after login. This seems to work using the DataInputStream class, but not when using BufferedReader class. Anyone have any ideas? Here is my code: public class RLogin public static void main(String args[]) p = Runtime.getRuntime().exec(s) ; } p.destroy() ;
Replies:
|
Sponsored Links
|