hi,

i have a simple program which will go to other machine using rsh

code :

import ????????????

public class Rsh extends Rexec {

Rsh rsh = new Rsh("192.168.1.104", "pc2", "nithia","ls -la", false);
try
{
rsh.connect();
rsh.execute();
InputStream input = rsh.getInputStream();
int in = input.read();
StringBuffer buffer = new StringBuffer();
if(in == 0)
{
buffer.append("Success! Remote host returned: \n");
}
else
{
buffer.append("Failure! Remote host returned: \n");
}
while((in = input.read()) != -1)
{
buffer.append((char)in);
}
System.out.println(buffer.toString());
}
catch(Exception e)
{
System.out.println(e);
}
}

it is a very simply program but i don't know what header need to be import .

can anyone tell me about this ? thanks in advance for the reply