![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
ftp help
Does anyone know why I can't transfer a directory containing files from a remote directory to a local directory using psftp. If I take the file out of the directory but put it in the same place as where the directory was then I can get that file using psftp's get file command. Does not work for the directory (holding folder) though. Could it have something to do with permissions?
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
It has nothing to do with permissions. Transfer of directories is simply not supported.
|
|
#3
|
|||
|
|||
|
So you're saying that if a directory(folder) is holding say 50 files in say ten sub-directories then the only option to transfer these files onto a local machine is to go into each sub-directory and transfer them from there?
Is there not a better way? |
|
#4
|
|||
|
|||
|
If the remote system is a UNIX based one, have the directories/files tar'd into a single file, then compress the file (gzip is good) for faster transmission.
If you do this, be sure and use binary mode for transmission. Then, on the destination machine, you would need to uncompress and untar the file. tar is a common way to put multiple files in multiple directories into a single file for transmission or distribution. If both systems supported pkzip, that would do it also. But ftp is a "File transmission protocol", and while it will handle wildcards, it will not cross directories. |
|
#5
|
||||
|
||||
|
Quote:
If you have expect installed, have a look at the rftp example that comes with expect. You'll find it in the same directory as the expect binary. |
|
#6
|
|||
|
|||
|
Thanks reborg and AWK for your replies. I did not know about tar. This does the trick for me. I gathered them together with tar and zipped them up with gzip. Transfered without any fuss.
Everyday ye learn somthing knew eh! Cheers again |
|
#7
|
|||
|
|||
|
Hi guys,
Since we are talking about ftp. I am trying to set up an ftp guest account on solaris 10. The account can not "cd .." out of the directory but only when the user is part of the guest group. Thats works fine but, The ftp client cann't see any files because the command "dir" doesn't work once the users is in the guest group. whoever the command "ls" does work. Any ideas. thanks |
|||
| Google The UNIX and Linux Forums |