On 06/11/09 12:43, KKavitha wrote:
> Hi,
> I am able to connect the host using rsh (via cli). But it is refused to 
> connect via script.
> 
> Following command I have used:
> `rsh -l <user> <host> <cmd>`
> 
> I have tried the same command(cli and script) in other two solaris servers. 
> It is working for me.
> 
> But one solaris server refused to connect via rsh(script).......It is wokring 
> fine in CLI.
> 
> Anybody have the idea of this root cause.

Are you sure you are using the exact same command on the CLI as in the script?

Often people try
   $ rsh server
and see that it succeeds; then they script
   rsh server <some command>
and that fails.

"rsh server" uses the network/login:rlogin service, while
"rsh server <some command>" uses the network/shell:default service.

Joep

Reply via email to