- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: replacing rpc
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 12:42 AM
10-21-2003 12:42 AM
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 ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 12:44 AM
10-21-2003 12:44 AM
Re: replacing rpc
ftp/rsync/rdist...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 12:47 AM
10-21-2003 12:47 AM
Re: replacing rpc
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 12:56 AM
10-21-2003 12:56 AM
Re: replacing rpc
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 01:05 AM
10-21-2003 01:05 AM
Re: replacing rpc
The only problem is when you receive outputs from your .cshrc file. Try to modify it to keep it silent.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 01:05 AM
10-21-2003 01:05 AM
Re: replacing rpc
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 01:08 AM
10-21-2003 01:08 AM
SolutionThe 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2003 01:27 AM
10-21-2003 01:27 AM
Re: replacing rpc
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.