My 1st question is , do you need to run the rsh command in a gnome terminal ? Could you just run the rsh command on its own in
java ? If you can't for some reason then your can try
t.exec("gnome-terminal -x rsh 192.168.0.20").getInputStream();
I also think you may be misunderstanding what happens when you call exec, here is a nice tutorial.
http://www.javaworld.com/javaworld/j...229-traps.html