Operating System - HP-UX
1752785 Members
6102 Online
108789 Solutions
New Discussion юеВ

how copy a file from one server to another server

 
WW528437
Occasional Contributor

how copy a file from one server to another server

how copy a file from one server to another server
can u give me complete reference
9 REPLIES 9
Tim Nelson
Honored Contributor

Re: how copy a file from one server to another server

lots of ways and lots of platforms. pick your pleasure and then read the man page. this is pretty basic.

ftp
sftp
rcp
scp
cp via nfs
cp via cifs
Steven Schweda
Honored Contributor

Re: how copy a file from one server to another server

e-mail
http
removable medium (disk (magnetic or optical),
tape (punched, magnetic), ...)

> [...] one server to another server

Not much of a description of anything.

> can u give me complete reference

Can you ask a complete question (that is, one
with any useful information in it)?
KapilRaj
Honored Contributor

Re: how copy a file from one server to another server


if that is a text file
then
cat file
select-all
right click ## Ooops putty might paste it right there
copy
paste
fi

:)
Nothing is impossible
Court Campbell
Honored Contributor

Re: how copy a file from one server to another server

uucp

ROFL
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Steven Schweda
Honored Contributor

Re: how copy a file from one server to another server

Kermit (serial line, Telnet, FTP, ... -- It's
seriously flexible.)
NDO
Super Advisor

Re: how copy a file from one server to another server

Hi

just do this: sitting on the source server

#scp -r root@:/



F.R.
Ismail Azad
Esteemed Contributor

Re: how copy a file from one server to another server

Hi,

ftp
put
bye

Execute these commands or use scp -r :/{file to share} {which dir you want it on }

Eg:- ftp 192.168.19.22
> put /tmp/vg01.map
> bye
OR
# scp -r 192.168.19.22:/tmp/vg01.map /tmp/vg01.map

You have assigned points to 0 of 22 responses. Don't forget to assign points. :)

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Steven Schweda
Honored Contributor

Re: how copy a file from one server to another server

> #scp -r [...]

> # scp -r 192.168.19.22:/tmp/vg01.map [...]

Why use "scp -r" for a non-directory file?

> [...] Don't forget to assign points. :)

Don't forget to ask a question which contains
enough information to make an answer
possible. _Then_ worry about points.
KapilRaj
Honored Contributor

Re: how copy a file from one server to another server

This might be another way to copy a file. :)

export thishost=$(uname -n)
export localfile=/var/tmp/useless
export remotefile=/var/tmp/useless
export remotehost=host1
export user=ww528437
export password=yecfoday
/usr/bin/expect --<set timeout 300
spawn ssh $user@$remotehost ;
expect "assword:" {
send "$password\r"
}
expect "$ " {
send "scp $remotefile $thishost:$localfile\r"
}
expect "$ " {
send "exit\r"
}
EOF
Nothing is impossible