1829101 Members
2602 Online
109986 Solutions
New Discussion

some problemes in rcp

 
Mousa55
Super Advisor

some problemes in rcp

hello
ineed copy file from uxserver to another uxserver.
i am using the
rcp -p S [] R [] user_name@hostname:pathname /filename /filename
i need copy file to root in another server but appear this message
{ cp:connet access ruxapp.sp.local : no sush file or directory
#rcmd :unkown host }
thanks
4 REPLIES 4
Peter Nikitka
Honored Contributor

Re: some problemes in rcp

Hi,

at first you should read the man page for the rcp command: man rcp

General use:
rcp [options] fromfile tofile

Example to copy /etc/hosts to tmp-directory of a remote user:
rcp -p /etc/host user@otherhost:tmp

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Steven E. Protter
Exalted Contributor

Re: some problemes in rcp

Shalom,

rcp -p filename user@hostname:/root


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven Schweda
Honored Contributor

Re: some problemes in rcp

This might make more sense if you showed the
actual command and its actual output. Given
this mess, I don't see how anyone could
figure out what you did or what went wrong.
Ivan Ferreira
Honored Contributor

Re: some problemes in rcp

>>> :unkown host

It looks like the source host cannot resolve the destination hostname. Check the entries in /etc/hosts or your DNS configuration
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?