Hi Samuel!

09 Feb 2003, "Samuel W. Heywood" <[EMAIL PROTECTED]> wrote:

 SH> Usage: scpdos [options] from to

 SH> from <username@remotehost:remotefile|localfile>
 SH> to   <username@remotehost:remotefile|localfile>

 SH> This syntax explanation makes no sense to me.

scp from to

scp a b will copy file a to file b (locally)
just like cp a b (aeh copy a b in dos)

And now for the interesting part ... remote files:

scp localfile sam@remotehost:remotefile
so for example scp sam.html sam@webserver:/var/www/html/sam/index.html
will copy the local file sam.html to the computer webserver into the dir
/var....

ATTENTION ... there is a ":" between host and remotefile !!!

to get a remote file you switch the arguments (eg from is now remote)

scp root@sshserver:~sam/arachne.txt

 SH> from <username@remotehost:remotefile|localfile>
this really says it all.
from can either be a localfile (like c:\dos\arachne.txt ,../arachne.txt or ...

or a remotefile <user>@<host>:<file>

one pitfall <file> is mandatory.

so to copy a file under the same name into the default dir you have to give a .
as file argument (. == current dir)

so to copy a file to your home:

scp file.txt sam@host:.

 SH> Sam Heywood

CU, Ricsi

-- 
|~)o _ _o  Richard Menedetter <[EMAIL PROTECTED]> {ICQ: 7659421} (PGP)
|~\|(__\|  -=> Help the economy! Buy me something! <=-

Reply via email to