I am trying to execute an rsh command from the java program. I dont have problems doing this. But when this command has some problem (like Permission Denied, no such command on remote machine etc), It doesn't give me the errors.
(If you execute the same command at the command prompt, it gives these details)
Is there a way to write the results the rsh command execution into a file when executing from the Java program?
when I execute this command on the commmandprompt, all the results are nicely goes into t.out
rsh <remoteMachine> -n -l <userId> "ls" >& t.out
but when I execute from the java program, it is not.
thanks in Advance.