> > Now the above command works and shows me the listing as needed.
> >However, when i put the same into a script as follows :
> > rsh $rsh_node -l $rsh_user << EOF
> > $rsh_password<enter>
> > ls -la<enter>
> > Now this just gives me a "Connection Closed" statement and no output
> >at all.
As a "freak" and "geek", you might know that "rsh" will never take
the password simply from standard input but rather insists on
getting it from a tty. The usual way out is the "expect" package.
> I too am trying to get rsh working from a Linux box to an AIX 5.1 box.
> I've created an .rhosts file in the /home/username directory with the
> format suggested by man rsh (i.e.: sourcehostname username) but when
> I try to rsh to the AIX box I receive the error "Permission is
Works fine for me - client is a Linux on an Alpha processor
(SuSE 7.0 distribution, 2.2.16 kernel); server is AIX 5.1.
It was necessary to use the fully qualified client name,
including the domain (even though client and server are in the same):
Similar holds for the "securettys" file needed on some Unix variants
(notably Tru64) for remote "root" login, here the line may need to
include the client's X server number:
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
(speaking only for himself)