if you want to copy
the entire "temp" directory to a server (Red Hat Enterprise Linux 4)
using pscp from PuTTY 0.60:
C:\temp\dir1\a.txt
C:\temp\dir2\b.txt
Scenario 1: if there is a trailing slash (or backslash) in the source
path, only the content of "temp" is copied:
C:\>pscp -r temp/ karthik@xxxxxxxxxxxx:/home/karthik/test/
On the server:
/home/karthik/test/dir1/a.txt
/home/karthik/test/dir2/b.txt
Scenario 2: if there is no trailing slash in the source path, the
entire "temp" is copied:
C:\>pscp -r temp michael@xxxxxxxxxxxx:/home/karthik/test/
On the server:
/home/karthik/test/temp/dir1/a.txt
/home/karthik/test/temp/dir2/b.txt
Doing a similar action from a Linux machine to the same server, with
or without the trailing slash, the result of scenario 2 is obtained.
No comments:
Post a Comment