![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ftp-mget | infernalhell | Shell Programming and Scripting | 3 | 10-01-2009 01:31 AM |
| mget new files only | mokachoka | UNIX for Dummies Questions & Answers | 1 | 09-24-2009 05:21 AM |
| mget * (obtein files from current directory but not the files form sub-directories) | Peter321 | Shell Programming and Scripting | 0 | 03-12-2009 11:59 AM |
| mget command | scorpio | Shell Programming and Scripting | 4 | 04-30-2008 01:00 AM |
| mget | yls177 | UNIX for Dummies Questions & Answers | 2 | 09-16-2002 10:37 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
ftp mget also gets files in subdirectories
Hi,
I have searched everywhere for an answer to this question but couldn't find one so I ask it here. From an AIX 5.3 machine I ftp to another AIX 5.3 server. I want to get all files and only files in a directory. This directory has a subdirectory with files in it. In ftp, I enter the commands: cd <remote-directory> prompt mget * The files in the subdirectory are also transferred. How can I prevent mget from transferring files in subdirectories? -Bart Last edited by bheinsius; 10-08-2009 at 06:48 AM.. |
|
||||
|
If you're desperate to use FTP then the one other solution might be to have a user that doesn't have permissions to the subdirectory, run the ftp script.
But that would be getting quite messy and scp really is a better solution if you can use it. |
|
||||
|
Not sure if I was clear, but I DON'T want the files in subdirectories to be transferred, but they DO.
---------- Post updated at 08:53 AM ---------- Previous update was at 08:50 AM ---------- I think I solved the problem. mget . skips the subdirectories! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|