Sponsored Content
Full Discussion: MGET Problem
Top Forums UNIX for Dummies Questions & Answers MGET Problem Post 302466017 by bleeding_me on Monday 25th of October 2010 07:45:44 AM
Old 10-25-2010
MGET Problem

Hello friends..

I'm new here ate the forum. I came across with it when trying to find a solution for a problem I have and I hope you can help me.

I'm an Abap programmer, and I have to make a program in ABAP to copy files from a server to the local computer defined path using FTP commands.

I was looking at these commands and I sucessfuly managed to copy ONE file from the server (FTP) to the local machine using:

Code:
get get <source_filename> <destination_path_&_filename>

But as I want to copy several files, I tried the following:

Code:
mget * <destination_path>

the execution says that all went well as u can see below

Code:
mget * d:\RJM\                                                               
200 PORT command successful                                                  
150 Opening ASCII mode data connection for 1_NG_NG20100101.dat (2323 bytes)  
226 Transfer complete                                                        
2323 bytes received in 0.00 seconds (2.27 Kbytes/s)                          
200 PORT command successful                                                  
150 Opening BINARY mode data connection for 5_NG_NG20100713.dat (7665 bytes) 
226 Transfer complete                                                        
7665 bytes received in 0.01 seconds (499.02 Kbytes/s)                        
200 PORT command successful                                                  
150 Opening BINARY mode data connection for 5_NG_SOCGL.dat (7665 bytes)      
226 Transfer complete                                                        
7665 bytes received in 0.00 seconds (7.49 Kbytes/s)                          
200 PORT command successful                                                  
150 Opening BINARY mode data connection for 6_NG_NG20100713.dat (8295 bytes) 
226 Transfer complete                                                        
8295 bytes received in 0.17 seconds (47.10 Kbytes/s)

but when I go to the destination path, there are no files there...

can anyone help me please?

Best regards,
Bleeding_me
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mget question

Basically, I like to know how "mget" command work in terms of data/control channels and in terms of request-respond dialogue. Also, when I try the command as an example below, is it true than for each file to be transferred, there is a new connection establish? (ie. transferred one file,... (5 Replies)
Discussion started by: ho_k
5 Replies

2. UNIX for Dummies Questions & Answers

mget

hi, i want to mget a directory. how to specify the flag that i dont want the system to prompt me? thanks (2 Replies)
Discussion started by: yls177
2 Replies

3. UNIX for Dummies Questions & Answers

mget and mput...

hello, i was interested in knowing if you can mget or mput a sequence of files: example- say i have a dir with 1000 files with the same extension e.g. *.sgi, is there a way to mget only the last 200 files? i would assume that there is a flag i would use, or something like: mget... (14 Replies)
Discussion started by: yoyomamma
14 Replies

4. Shell Programming and Scripting

mget command

Hi All, I am using mget (mget server.*) through ftp... ... i dont want to overwrite the files in my localmachine if it is already exists... is it possible through ftp ?? any other optios also mos t welcome Thnks in advance (4 Replies)
Discussion started by: scorpio
4 Replies

5. UNIX for Dummies Questions & Answers

mget new files only

Hi all, I am currently in the process of setting up an FTP server with limited knowledge :p. I have run into an issue that i need some help with. Basically i want to be able to download files off another remote server twice a day every day but i want to make sure it only downloads new... (1 Reply)
Discussion started by: mokachoka
1 Replies

6. 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

7. UNIX for Dummies Questions & Answers

If then else in with mget command

Hi Friends, I need to use if then else logic with the mget command.I need to check if {JOURNAL_CODE}*_1_Audit*.txt exists then download it (using mget)and if not then leave it.Same for the {JOURNAL_CODE}*_2_Audit*.txt file.Can you please tell me how can i achive that? sftp -b -... (3 Replies)
Discussion started by: Param0073
3 Replies

8. UNIX for Dummies Questions & Answers

mget help

Hi I'm trying to get all files from a directory with a script. So i'm gone paste my script here: cd /var/www/match_demos/speedgaming/ lftp -u Gudfaren,xxxxx ftp.speedgaming.pro -e cd 89.221.243.11_27500 -e mget *.dem exit when i run that i get: "File name missed. Try `help mget' for more... (2 Replies)
Discussion started by: vYN
2 Replies

9. UNIX for Dummies Questions & Answers

Strange mget problem

Hi! I'm a bit of a unix n00b so be gentle! I need to use ftp to download some files. I have the ftp running in a shell script which had been working perfectly last week. I downloaded around 400 files before it broke on friday. Now whenever I try to run the script, it starts to download... (3 Replies)
Discussion started by: johnnybongo
3 Replies

10. Shell Programming and Scripting

[Solved] Prompt problem while using mget to ftp

I am writing a scritp in which first step is to get some files from a server. I am using mget to do that. here is my FTP code ... HOST="XXX.XXX.com" 28 ftp -inv $HOST <<END &> $FTP_LOG 29 quote USER $USER 30 quote PASS $PASWD 31 cd log 32 prompt off 33 binary 34 mget... (0 Replies)
Discussion started by: shashidhar
0 Replies
gnats(7)                                                 Problem Report Management System                                                 gnats(7)

NAME
gnats - Problem Report Management System DESCRIPTION
GNATS is a bug-tracking tool designed for use at a central support site. Software users who experience problems use tools provided with GNATS to submit Problem Reports to the the maintainers of that software; GNATS partially automates the tracking of these problems by: o organizing problem reports into a database and notifying responsible parties of suspected bugs; o allowing support personnel and their managers to edit, query and report on accumulated bugs; and o providing a reliable archive of problems with a given program and a history of the life of the program by preserving its reported problems and their subsequent solutions. GNATS offers many of the same features offered by more generic databases. You can query and edit existing problem reports (PRs) as well as obtain reports on groups of PRs. The database itself is simply an ordered repository for problem reports; each PR receives a unique, incremental PR number which identifies it throughout its lifetime. Many of the primary functions available with GNATS are accessible from within GNU Emacs. PROBLEM REPORT STATES
PRs go through several states in their lifetimes. The set of states is site-specific. The default set of states are: open the initial state of every PR; this means the PR has been filed and the person or group responsible for it has been notified of the suspected problem analyzed the problem has been examined and work toward a solution has begun feedback a solution has been found and tested at the support site, and sent to the party who reported the problem; that party is testing the solution closed the solution has been confirmed by the party which reported it In some cases, it may be necessary to suspend work on a bug; in this case, its state changes to suspended rather than closed. STRUCTURE
Incoming PRs are assigned an incremental serial number and filed according to category. An index is kept concurrently to accelerate searches of the database. All GNATS administration and database files are located in subdirectories of a directory associated with each database. Databases are named, and the association between database names and directories is described by the databases file, which is found on this system in /usr/etc/gnats/databases. Problem Reports are segregated into subdirectories within the database directory by category. For example, problems submitted with a cate- gory of gcc will be filed in the database subdirectory gcc. GNATS administration files are kept in the database subdirectory gnats-adm: addresses contains mappings between submitter IDs and corresponding e-mail addresses categories table of valid categories and parties responsible for them classes table of valid classes of Problem Reports current keeps track of incremental PR numbers assigned dbconfig describes the structure of the database, and various database-specific options gnatsd.user_access lists host names and access levels of hosts authorized to access the database gnatsd.user_access lists user names, passwords and access levels of users authorized to access the database index database index locks directory containing lock files responsible table of responsible parties and their email addresses states table of valid states of Problem Reports submitters database of sites which submit PRs Administrative programs and programs internal to GNATS are kept in the directory /usr/libexec/gnats while those meant for public use are installed in /usr/bin. /usr/libexec/gnats contains the programs: mkdb used by the GNATS administrator to create a new database mkcat used by the GNATS administrator to create new categories [obsolete] rmcat used by the GNATS administrator to remove outdated categories [obsolete] gen-index used by the GNATS administrator to generate a new version of the index queue-pr mail control program which accepts incoming messages and periodically submits them to the database via cron by feeding them through the program file-pr(8) pr-edit program which is mainly responsible for editing existing PRs and filing new ones; it is used by edit-pr and file-pr file-pr script which uses pr-edit to file new PRs at-pr automatically notifies responsible parties if a PR is not analyzed within a requisite period defined in the submitters file delete-pr used to delete closed PRs /usr/bin contains the programs query-pr used to query the database edit-pr used to edit individual PRs send-pr used to submit problems to GNATS Documentation exists for all programs associated with GNATS. SEE ALSO
Keeping Track: Managing Messages With GNATS (also installed as the GNU Info file gnats.info) databases(5), dbconfig(5), delete-pr(8), edit-pr(1) file-pr(8), gen-index(8), gnats(7), gnatsd(8), mkcat(8), mkdb(8), pr-edit(8), query- pr(1), queue-pr(8), send-pr(1). HISTORY
GNATS was greatly inspired by the BSD sendbug(1) and bugfiler(8) programs. It was originally written in C++, Elisp, shell script, and awk. It presently consists of utilities written in C, shell script, and Elisp. AUTHORS
GNATS was originally written by Heinz G. Seidl (Cygnus Support). Subsequent iterations were developed by Brendan Kehoe (Cygnus Support) and Jason Merrill (Cygnus Support), with help from Tim Wicinski. Documentation was initially developed by Jeffrey Osier (Cygnus Support) and Brendan Kehoe (Cygnus Support). Version 4.x was a substantial rewrite done by Bob Manson (Juniper Networks), Milan Zamazal and Yngve Svendsen (Clustra Systems / Sun Microsystems) COPYING
Copyright (c) 1992, 1993, 1999, 2000, 2003, Free Software Foundation Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be included in translations approved by the Free Software Foundation instead of in the original English. GNATS August 2003 gnats(7)
All times are GMT -4. The time now is 09:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy