Sponsored Content
Full Discussion: ftp mget directory
Operating Systems AIX ftp mget directory Post 302360093 by bheinsius on Thursday 8th of October 2009 06:14:17 AM
Old 10-08-2009
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 07:48 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mget (ftp command)

hey, I was wondering if its possible to use a complete path and file name using the mget command example mget /dir1/dir2/dir3/file.ext or get /dir1/dir2/dir3/file.ext because whenever i try its says file not found or permission denied..... but if i do cd dir1 cd dir2 cd dir3 mget... (2 Replies)
Discussion started by: Ganondorf
2 Replies

2. UNIX for Advanced & Expert Users

mget ftp command options

Hi, I am using mget ftp command to pull a bunch of zip files from Windows to local unix machines. It is working fine as follows. -rw------- 1 autosys autosys 614 Aug 19 13:13 02034128.zip -rw------- 1 autosys autosys 1866 Aug 19 13:13 02034127.zip -rw------- 1 autosys autosys 14592 Aug 19... (1 Reply)
Discussion started by: spatra
1 Replies

3. Shell Programming and Scripting

mget ftp command options

Hi, I am using mget ftp command to pull a bunch of zip files from Windows to local unix machines. It is working fine as follows. -rw------- 1 autosys autosys 614 Aug 19 13:13 02034128.zip -rw------- 1 autosys autosys 1866 Aug 19 13:13 02034127.zip -rw------- 1 autosys ... (1 Reply)
Discussion started by: spatra
1 Replies

4. Shell Programming and Scripting

No return code in ftp mget script

I have a automated FTP script that gets a file using mget. I am using mget because the date will change on the file frequently. The mget works, however if I incorrectly type the file (e.g. if I want to get /dog123 and I enter /dg*) I do not receive and error code from in the FTP session. The... (1 Reply)
Discussion started by: dog123
1 Replies

5. UNIX for Dummies Questions & Answers

Using FTP mget from Visual Basic Shell

Hi calling a batch file with FTP commands from Visual basing with Shell, it basically to copy files then delete them. The delete seems to work but the copy, it looks like the mget command doesn't have the complete information on where to copy the files. Here is the batch file content. Open... (2 Replies)
Discussion started by: Mario120560
2 Replies

6. Shell Programming and Scripting

Ftp-mget

For the below mentioned code..Files are getting transferred from first mget statement alone ie from /home/Arun/*EF01/...Could someone help me regarding this ftp -vn <<EOD >$LOG open user lcd ascii mget /home/Arun/*EF01/GLHEC* mget /home/Arun/*EF03/GLHEC* mget... (3 Replies)
Discussion started by: infernalhell
3 Replies

7. Shell Programming and Scripting

problem with ftp mget

Hi I am trying to ftp all the files from a directory in server2 to server1 (both unix) The below code is in server1 ftpfile=/home/anitha/ftptxt echo cd mydir >>$ftpfile echo mget *.* >>$ftpfile cat $ftpfile | ftp -i server2 mydir is a directory in server2 and there are some test files in... (4 Replies)
Discussion started by: anijan
4 Replies

8. Shell Programming and Scripting

Ftp mget exclusion question

In the script I am doing a mget for multiple files. How can I exclude just one file which I do not need to ftp ? (3 Replies)
Discussion started by: jville
3 Replies

9. Shell Programming and Scripting

FTP mget * not working after change directory -cd

Hi everyone, I have an Linux FTP script to get files from different AS400 mailboxes and store in different local directories. I had to use mget * option becuase there is no fixed destination file name means filename can change. The following FTP script is working fine if we have single file... (5 Replies)
Discussion started by: oravikiran
5 Replies

10. UNIX for Dummies Questions & Answers

FTP mget will only grab files not folders

Hey All, first post :rolleyes: So I am writting a script to pull down files from an ftp that will be called from a bat file on windows. This seems pretty straight forward, and grabs all of the "files" in the cd location, but I am running into some permission issue that will not allow me to... (1 Reply)
Discussion started by: mpatton
1 Replies
SYSINST(8)						    BSD System Manager's Manual 						SYSINST(8)

NAME
sysinst -- install or upgrade a NetBSD system SYNOPSIS
sysinst [-D] [-f deffile] [-r releasename] DESCRIPTION
sysinst is a menu-based program that may be used to install or upgrade a NetBSD system. It is usually invoked automatically when the system is booted from appropriate installation media. sysinst is usually not present on a NetBSD system that has been fully installed. OPTIONS
-D Switch on debugging. -r releasename Set the releasename if it is different to the one compiled. Currently unused. -f deffile Set a file for definitions other than the defaults. See DEFINITION FILE for its format. DEFINITION FILE
The definition file is used to set several other names and directories to search for. You can specify any of the options in the file. They are stored as: option = value pairs. In this description, REL and MACH are the release and architecture respectively, determined by the image sysinst is used on. option name default value description release REL Release name (also set by -r releasename). machine MACH Machine architecture xfer dir /usr/INSTALL Transfer dir ext dir Extract dir (will usually be set later on) ftp host ftp.NetBSD.org ftp host for fetching files ftp dir pub/NetBSD/NetBSD-REL ftp directory for fetching files ftp prefix /MACH/binary/sets directory to look for sets. Note that this is used for all kinds of fetching (CDs, local FS, ...), not only ftp. ftp user ftp ftp user for connecting ftp pass - ftp password ftp proxy - ftp proxy nfs host - nfs host for fetching via nfs nfs dir /bsd/release nfs directory for fetching files cd dev cd0a name of the CD device for fetching files fd dev /dev/fd0a name of floppy for fetching files local dev - Other device to be mounted for fetching files local fs ffs FS-type for local dev local dir release Directory to look for in the mounted local fs targetroot mount /targetroot Directory to mount target root dir to dist postfix .tgz Suffix of set files to be extracted diskname mydisk disktab(5) diskname to use for target disk SEE ALSO
release(7), afterboot(8), boot(8), diskless(8) <machine>/INSTALL.* files on CD-ROM installation media .../NetBSD-<rel>/<machine>/INSTALL.* files in NetBSD releases or snapshots. HISTORY
A sysinst command appeared in NetBSD 1.3. BSD
September 17, 2011 BSD
All times are GMT -4. The time now is 07:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy