The Korn shell is not stopping you. You should be able to rsh right from it, I do it all the time. It is most likely that your rhosts are setup incorrectly. [Or correctly and they do not want you to attempt what you are doing]
Rather than repeat the manual for you, or worse give you the RTFM response (my #1 pet irritant), look at rsh on your server (find the manual, I did not find the man page helpful). An even better option is to setup ssh. It is fairly easy to setup and once you build trusted keys, a 30 second process, sigining in requires neither an id or password. You scripts "just run"
Thank you for your reply. Still have some challenges...
My code is:
--------------------------
!/usr/bin/ksh
rksh remotehost find ${HOME} -name somefile
exit 0
--------------------------
Also, there is a .rhosts file in the 'remotehost' ${HOME} dir in the following format:
<IP Address> <mymachine.domain.com> <alias>, for instance:
192.168.100.100 mymachine.domain.com mymachine
After executing my script, I get this error:
--------------------------
rksh: remotehost: cannot open
--------------------------
rksh remotehost find ${HOME} -name somefile
should be
rsh remotehost find ${HOME} -name somefile
while rksh may appear logical, you are actually using the remote shell protocol, and it is shell independent. Also, to save yourself some problems later, always specify full directories on the remote server unless you are positive you know what HOME points to. For example:
rsh 123.123.123.123 ls /home/users/userid01
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.