The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



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

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-08-2009
bheinsius bheinsius is offline
Registered User
  
 

Join Date: Oct 2009
Location: Netherlands
Posts: 3
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..
  #2 (permalink)  
Old 10-08-2009
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,259
I have no direct solution to this - I recommend setting up ssh and so with use scp without a -r for being recursive. It is encrypted and when keys are exchanged even more comfortable to use.
  #3 (permalink)  
Old 10-08-2009
charlesw charlesw is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 1
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.
  #4 (permalink)  
Old 10-09-2009
bheinsius bheinsius is offline
Registered User
  
 

Join Date: Oct 2009
Location: Netherlands
Posts: 3
Thanks for the suggestions, neither is an option at this site.

Is this behavior AIX-specific?

-Bart
  #5 (permalink)  
Old 10-09-2009
funksen funksen is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 430
Edit: post deleted

got you wrong

Last edited by funksen; 10-09-2009 at 05:45 PM..
  #6 (permalink)  
Old 10-09-2009
bheinsius bheinsius is offline
Registered User
  
 

Join Date: Oct 2009
Location: Netherlands
Posts: 3
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!
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0