How to copy a file from another server to local?
Hi all,
I try to copy a file from another server/machine to local. The another server/machine name is s003ap06-acct and the file locates under /var/log/httpd/mod_jk.log I use the following command Code:
cp s003ap06-acct:/var/log/httpd/mod_jk.log ./ Code:
cp: cannot stat `s003ap06-acct:/var/log/httpd/mod_jk.log': No such file or directory |
cp command will work on local machine only. If you want to copy from remote machine then you will need to use scp or rcp
|
Quote:
|
Code:
scp remote_username@remote_host:/var/log/httpd/mod_jk.log ./ |
All times are GMT -5. The time now is 03:35 AM. |