1835871 Members
3285 Online
110085 Solutions
New Discussion

Re: replacing rpc

 
SOLVED
Go to solution
Pelephone System
Frequent Advisor

replacing rpc

Hi

i wanted to use the rcp on hp-ux 11.00 but it fail all the time , but after a have read all man pages of the rcp i saw that you have a problem to use rcp when your shell is cshrc

i m looking for somthing that can replace the rcp .

any ideas ?
HPUX sysadmin
7 REPLIES 7
Zeev Schultz
Honored Contributor

Re: replacing rpc

scp from the SSH depot?
ftp/rsync/rdist...
So computers don't think yet. At least not chess computers. - Seymour Cray
Robert-Jan Goossens
Honored Contributor

Re: replacing rpc

Hi,

If you use rcp, check if ip adres and hostname are in the /etc/hosts file. vi /.rhosts and add hostname and the user.
hostname root

Hope it helps,
Robert-Jan.
Michael Steele_2
Honored Contributor

Re: replacing rpc

Regarding "...when your shell is cshrc...". Incorrect.

And SCP, Secure Copy, is more complicated for obvious reasons.

So lets concentrate on 'rcp' failing. Can you rlogin?

Permissions on $HOME/.rhost = 640 or 644.

After making changes run :

# inetd -c

Use this format for .rhosts:

[hostname [username]] [#comment]

A blank line.
A comment line, beginning with a #.
A host name, optionally followed by a comment.
A host name and user name, optionally followed by a comment.
A host or user name is a string of printable characters, excluding whitespace, newlines, and #.
Names are separated by whitespace.
Support Fatherhood - Stop Family Law
Jean-Louis Phelix
Honored Contributor

Re: replacing rpc

Hi,

The only problem is when you receive outputs from your .cshrc file. Try to modify it to keep it silent.

Regards.
It works for me (© Bill McNAMARA ...)
Pelephone System
Frequent Advisor

Re: replacing rpc

Hi

rlogin is working well and also remsh .
when i m changing the shell of the user it also work .
also the .rhost is config with ++
and i m not getting eny error message when i m doing the rcp so i dont think it is a .rhost file or a missing ip adress


this i saw in the man pages :

WARNINGS
The rcp routine is confused by any output generated by commands in a
.cshrc file on the remote host (see csh(1)).


so i gave up with rcp and looking for a diff. method

if somone have users that is working with cshrc and can do rcp it will be great to know
HPUX sysadmin
Robert-Jan Goossens
Honored Contributor
Solution

Re: replacing rpc

Hi Eithan,

The key word here is OUTPUT. If you have any echo commands in the
.cshrc or .login or .profile, then the rcp will fail with no errors.
You must take out the echo commands, then rcp will work fine.

Document description: When I use rcp it appears to copy but it doesn't.
Document id: CMA910318100

http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000006406934

Regards,
Robert-Jan.
Jean-Louis Phelix
Honored Contributor

Re: replacing rpc

Hi,

I'm not a csh expert, but I made this test :

with this .chsrc :

stty erase
date

rcp will fail.

With this one :

if ($?prompt) then
stty erase
date
endif

It works.

This test is the equivalent of testing "-t 1" in shell to check if we are running an interactive session. Use it to avoid outputs when not associated with an interactive session like in rcp case.

Regards.
It works for me (© Bill McNAMARA ...)