Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use of RSH command on SCO Unix

Status
Not open for further replies.

salimwng

IS-IT--Management
Mar 11, 2002
134
MU

I am making use of cron to schedule backup of data files to another Unix server, beside of doing it on Tape cartridge. This have been possible through ftp and using .netrc. This works fine.

However i would like to have these backup files ( In tar format - found on the second Unix server ) to be executed and restored. I am thinking to use RSH in the script file i am using in the cron.

I have tried a lot, but it does not work. After many research i have come across .host (hostname). Could anybody tell me how to setup the rsh. Please.

Many thanks
Salim
 
All you should need to specify for rsh and rcp to work is:

/.rhosts
- this should have the name of your destination server from the source server; and vice versa. If the servers are on different domains specify within the file.

/etc/hosts.equiv
- you may need to specify the servers name in here too if you are experiencing problems after the first step. Again for differing domians put the fully qualified name in.

That should be it basically!

Phil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top