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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with rcp command

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,
I have a shell script in which I have to copy files to another host using rcp command. However I am getting an error stty : : Unable to assign address and stty : : Unknown error. My .rhosts file has the entry + username. The remsh commands work fine, its only the rcp command that is giving problems.
I have used the command as rcp filename username@hostname:destinationdirectory. I am using ksh on HP-UX 10.2

Can anyone help.
 
Further to this problem, one suggestion was to remove the lines containing stty commands from the .cshrc file and put it into the .login file. After I did this, I'm not getting the stty errors, but the file is still not copied to the remote host and I'm getting an error code of 1.
 
Weird...... These 'r' commands always seem to bite me as well.

Did this work at some point or is it a new script you're trying to get going?
Mike
michael.j.lacey@ntlworld.com
 
You must to exclude all the lines from your initialization profile trying to read and/or write to your terminal or session...

I hope it works...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top