Operating System - Linux
1832091 Members
2710 Online
110038 Solutions
New Discussion

rcp problem between HP-UX & RH 9 servers

 
P M Prabu
Occasional Advisor

rcp problem between HP-UX & RH 9 servers

hai all

i am facing a problem bettween HP-UX server & RH 9 server while using rcp from HP server to RH 9 server

i am giving the following command
"rcp file_name IPADDR@21.1.4.8:/home/HOME_of_user"

the error is "stty: standard input: Invalid argument"

please help me to solve this prob
regards
prabu
8 REPLIES 8
Chakravarthi
Trusted Contributor

Re: rcp problem between HP-UX & RH 9 servers

T G Manikandan
Honored Contributor

Re: rcp problem between HP-UX & RH 9 servers

Make sure you have configured your $HOME/.rhosts entries.

Please move the appropriate shell initialization file and try again.

Might be

stty commands in the .profile file are creating problems.

If you are using a bourne shell rename your .profile file and try again.

Revert
T G Manikandan
Honored Contributor

Re: rcp problem between HP-UX & RH 9 servers

rcp file_name IPADDR@21.1.4.8:/home/HOME_of_user

This should be
if you are copying from local to remote

rcp user@host:

If this is remote to local is should be like

rcp user@host:
Sergejs Svitnevs
Honored Contributor

Re: rcp problem between HP-UX & RH 9 servers

The problem is being reported to you: Invalid Argument.

You need to give the next command:

rcp file_name remoteuser@remotehost:remotefile

Regards,
Sergejs
Naveej.K.A
Honored Contributor

Re: rcp problem between HP-UX & RH 9 servers

Hi Prabu,

Suppose you want to copy the file /mnt1/users/test from the hpux server (hpux) to /tmp/users on the linux server (linux), use the following command.

rcp /mnt1/users/test testuser@linux:/tmp/users

You must have the proper trust relationship between hpux and linux for the user, "testuser"

Regards,
Naveej
practice makes a man perfect!!!
P M Prabu
Occasional Advisor

Re: rcp problem between HP-UX & RH 9 servers

hai mani

if i am renaming the .bashrc the rcp getting copy without fail
but when the user login,proper prompt doesn't comes.
it comes like "-bash-2.05b$" the orignal one is"[USER_NAME@server FILE_NAME]$

now how to solve this ?

regadrs
prabu



Dave Falloon
Trusted Contributor

Re: rcp problem between HP-UX & RH 9 servers

The problem is probably something like you have an stty command setting some keys for the environment in the .bashrc file which is the file sourced for noninteractive shells such as rcp. You should put all your stty commands and commands that set prompts etc. in the .bash_profile which is the file sourced for interactive shells, ie. rsh

Try moving the stty command out of your bashrc into the bash profile and see if that works.

--Dave
Clothes make the man, Naked people have little to no effect on society
P M Prabu
Occasional Advisor

Re: rcp problem between HP-UX & RH 9 servers

hai everybdoy

Now made changes in the .bashrc file & which is pointing to the /etc/bashrc script.
Actually i copied the hole content of the /etc/bashrc file to /hoe/HOME_DIR/.bashrc & i put remarks in one of the stty setting "#stty erase ^H"

Now rcp is working without any error message

thanks for u r valuable replies

Regards
PM Prabu