FTP+mget

Hi Folks,
When connecting to a remote server via ftp on the command line, and using mget *, this drops all the files into the root of my $HOME directory. How can I direct these files into another folder other than $HOME? Or within a subfolder of $HOME?
Thanks, Doug

Nevermind, I figured it out:
lcd localdirectory
For example:
ftp> lcd ftpdownloads
Local directory now /Users/Doug/ftpdownloads
ftp> mget *
Hope this helps someone else.
Doug
Message was edited by: Doug Niven1

Similar Messages

  • ASM+FTP+mget * Not working

    Dear All,
    My requirement is keep daily RMAN complete backup set to central repository server. This server is far away from the local premise and need to use for only disaster scenario.
    I am running ORACLE RAC database with ASM File system
    I configured the FTP on specific port for ASM file system. so i can ftp the daily backup to central repository server
    For this i configured the script in central repository server with get command.
    Now the problem is "FTP MGET * " is not working.
    Question- How can i get rid of this issue???
    Regards,
    Sumit

    Hello Sumit,
    As you talked about moving your RAC backups to another server via FTP, if i may ask are you using FLASH RECOVERY area for all your backups and if yes then are you using ASM diskgroups for your Flash Recovery Area. Because if it is ASM diskgroups where you have stored your RMAN backups then for accessing ASM diskgroups via FTP you need to set it up as following :
    *[http://sites.google.com/site/racinsights1/Home/rac-tips-1/posts/howtocopyfilesintoandfromasm]*
    Lalit Verma
    [http://sites.google.com/site/racinsights1]

  • Error while executing procedure for FTP

    Hi all,
    I am facing error while copying l the csv files from FTP to local directory on my machine.
    I have created a procedure & selected technology jython . please find the code below.
    import snpsftp
    ftp = snpsftp.SnpsFTP('ftp://noid-misa-01-pp/', 'indiaftp', 'PWD')
    ftp.setmode('ASCII')
    ftp.mget('INT/GPInput(AU)/', '*.csv', 'C:\D_DRIVE_NEERAJ\reading')
    ftp.close()
    The error i am receiving is :
    org.apache.bsf.BSFException: exception from Jython: Traceback (innermost last):
    File "<string>", line 2, in ?
    File "C:\OraHome_1\oracledi\bin\..\lib\scripting\Lib\snpsftp.py", line 50, in __init__
    File "C:\OraHome_1\oracledi\bin\..\lib\scripting\Lib\snpsftp.py", line 58, in connect
    File "C:\OraHome_1\oracledi\bin\..\lib\scripting\Lib\ftplib.py", line 118, in connect
    File "C:\OraHome_1\oracledi\bin\..\lib\scripting\Lib\socket.py", line 135, in connect
    java.net.UnknownHostException: ftp://noid-misa-01-pp/

    If reading Excel as a database you would use "Access LSLINK"
    Access external means you are reading a file. I don't think it is possible to treat Excel as a file because the internal structure is complex.
    In the past I have saved the Excel as a CSV or as a Tab delimeted file. Then I use something like
    ACCESS External
      USE &filename
      BEGIN
        DESCRIPTION free ,
        Variables text 20
        Organisation text 20
        'July 2008' numeric 20
        'August 2008' numeric 20
        'September 2008' numeric 20
        'October 2008' numeric 20
        'November 2008' numeric 20
        'December 2008' numeric 20
        'January 2009' numeric 20
        'February 2009' numeric 20
        'March 2009' numeric 20
        'April 2009' numeric 20
        'May 2009' numeric 20
        'June 2009' numeric 20
      END
      peek
      read
    ... quit the access sub system
    END

  • FTP transfert with progressbar

    Hi !
    I would like to download a file from my PXI controler to my remote PC. For the moment I use the FTP MS-Dos command (with System Exec.vi) but I would like to see the progression of my file (with a progress bar for instance). Someone can give me advices about it? I would like a free solution (not a commercial Win32 API).
    Thanks,

    Hi,
    Concerning the same issue I am addressing the "FTP-forum".
    I am doing FTP datarate measurements through the command windows,logging in to the ftp server use , ,
    and or . I am reading the datarate and time that the downlaod (or upload)session took in and old fashon way (cut&paste). I found several examples aslike the one that I am attaching now, but I cannot modify it to read me the string that I need i.e. :bytes received in 8.86Seconds 8316.09Kbytes/sec
    Can anyone help?
    Example of my session.
    ftp> bin
    200 Type set to I.
    ftp> prompt
    Interactive mode Off .
    ftp> mget *
    200 Type set to I.
    200 PORT command successful.
    150 Opening BINARY mode data connection for Half.zip(73663934 bytes).
    226 Transfer complete.
    ftp: 73663934 bytes received in 8.86Seconds 8316.09Kbytes/sec.
    Tnaks in advance
    Yariv
    Attachments:
    FTP_with_the_Windows_FTP_Utility.llb ‏59 KB

  • Please help... FTPing patch set fails

    Hello all,
    I'm trying to ftp 10.1.0.3 patch set (p3761843_10103_HPUX-IA64.zip - 1GB) to a HP-UX 64 server from updates.oracle.com, but it times out... I already modified the etc/inetd.conf file on HP-UX and set it to 7200 seconds, but did not fix... I do not know what's wrong... Any info. would be appreciated.

    Basically, I want to know why the ftp fails every time. It stops at a certain point every time, not downloading the full 1GB zip file.
    server_oracle%58: ftp updates.oracle.com
    Connected to bigip-updates.oracle.com.
    220 FTP server ready.
    Name (updates.oracle.com:ttpdb): metalinkuser
    331 Username OK, please send password.
    Password:
    230-
    230- Welcome to the Oracle Patch Download FTP Server
    230-
    230- For detailed help, use command "quote site help".
    230
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> cd 3761843
    250 Changed directory OK.
    ftp> ls -ltr
    200 PORT command OK.
    150 Opening data connection for file listing.
    total 1
    -r--r--r-- 1 root other 960527445 Aug 17 2004 p3761843_10103_AIX64-5L.zip
    -r--r--r-- 1 root other 787477940 Aug 16 2004 p3761843_10103_HP64.zip
    -r--r--r-- 1 root other 1083138962 Oct 19 2004 p3761843_10103_HPUX-IA64.zip
    -r--r--r-- 1 root other 577798764 Aug 23 2004 p3761843_10103_LINUX.zip
    -r--r--r-- 1 root other 779447724 Feb 11 2005 p3761843_10103_MVS.zip
    -r--r--r-- 1 root other 679588881 Aug 13 2004 p3761843_10103_SOLARIS64.zip
    -r--r--r-- 1 root other 940614249 Sep 22 2004 p3761843_10103_TRU64.zip
    -r--r--r-- 1 root other 469761432 Aug 22 2004 p3761843_10103_WINNT.zip
    -r--r--r-- 1 root other 652581872 Sep 16 2004 p3761843_10103_WINNT64.zip
    226 Listing complete. Data connection has been closed.
    ftp> mget p3761843_10103_HPUX-IA64.zip
    ---------------------------------------------------------------------------

  • Adding footage fails with larger documents

    Hi,
    I'd be thankful for any advice: I tried to add footage to a document (2.300 kb) for several times, but it doesn't work. With smaller documents it's no problem. It's a pdf of a magazine we publish for open access.
    Has anyone an idea that would help me?
    Thanks.

    Hi MScallion,
    You can try the following Jython script to transfer the files using FTP.
         import snpsftp
         ftp = snpsftp.SnpsFTP('HOST_NAME', 'USER_NAME', 'PASSWORD')
         ftp.setmode('ASCII')
         ftp.mget('SOURCE_DIR', 'File1.txt','OUTPUT_DIR')
         ftp.close()
    Thanks,
    Yellanki

  • How to merge two iphoto libraries

    How do I merge two Iphoto libraries

    Actually it can be done on the command line.  This will be quite tedious if the library you are transferring is large.
    Log into the computer on which you want the merged library to reside. 
    Then, go to Applications->Utilities, and launch the Terminal.
    At the prompt, cd to the following directory:
    Lydias-MacBook-Pro:~ lydiachet$ cd Pictures/iPhoto\ Library/Auto\ Import
    Now launch an ftp session with the computer where your other library resides:
    Lydias-MacBook-Pro:Auto Import lydiachet$ ftp 192.168.1.36
    Connected to 192.168.1.36.
    220 192.168.1.36 FTP server (tnftpd 20080929) ready.
    Name (192.168.1.36:lydiachet): carolchet
    331 User carolchet accepted, provide password.
    Password:
    230 User carolchet logged in.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    On the remote computer, cd to the Masters directory in the iPhoto library:
    ftp> cd Pictures/iPhoto\ Library/Masters
    The directory tree from here down is listed by year, month and date, so actual directories will vary: in the example I'm looking in a directory from July 21, 2012:
    ftp> cd 2012/07/21
    250 CWD command successful.
    ftp> ls
    229 Entering Extended Passive Mode (|||62595|)
    150 Opening ASCII mode data connection for '/bin/ls'.
    total 0
    drwxr-xr-x  12 carolchet  staff  408 Jul 21 11:29 20120721-112923
    226 Transfer complete.
    Now cd to the only directory found here:
    ftp> cd 20120721-112923
    View the photo files using the ls command:
    ftp> ls
    229 Entering Extended Passive Mode (|||62596|)
    150 Opening ASCII mode data connection for '/bin/ls'.
    total 5
    -rw-------  1 carolchet  staff  231082 Jul 21 11:04 IMG_0035.JPG
    -rw-------  1 carolchet  staff  249389 Jul 21 11:04 IMG_0036.JPG
    -rw-------  1 carolchet  staff  253379 Jul 21 11:04 IMG_0037.JPG
    -rw-------  1 carolchet  staff  270819 Jul 21 11:05 IMG_0038.JPG
    -rw-------  1 carolchet  staff  253501 Jul 21 11:05 IMG_0039.JPG
    -rw-------  1 carolchet  staff  243288 Jul 21 11:05 IMG_0040.JPG
    -rw-------  1 carolchet  staff  248939 Jul 21 11:05 IMG_0041.JPG
    -rw-------  1 carolchet  staff  287363 Jul 21 11:06 IMG_0042.JPG
    -rw-------  1 carolchet  staff  248358 Jul 21 11:07 IMG_0044.JPG
    -rw-------  1 carolchet  staff  268819 Jul 21 11:08 IMG_0045.JPG
    226 Transfer complete.
    ftp>
    from this point you can copy the files to the local computer using mget
    ftp> mget *.JPG
    If you have lots of pictures this will be tedious as you then need to navigate through the diretory trees until you have copied all the photos. 
    Good news is, next time you launch iPhoto on the local computer, it will automatically import all of the new files.

  • Feature request(s)

    I am not sure if this is appropriate in this area, but I am also curious about what other features other customers are interested in, here are a few of ours:
    Email Adapter to have the ability to strip off an attachment to an email that is sent to a tidal email box and save to a network path (with variables) and the ability to save as a different file name
    Email Adapter to have the ability to delete / archive emails (to automate email maintenance)
    Email Adapter to have the ability to use variables (global, group) on scan for text in message/subject
    Tidal FTP MGET function, remove the directory listings prior to MGET (built into code) it will bomb out on FTP repositories with large amout of files
    Calendar offset to be able to exceed 31 days
    Calendar object be able to offset incremental days so that you could make a calendar "every 80 days" exactly
    Ability to group Resource (like an agent list, for easier view)
    Ability to group Variables (like an agent list, for easier view)
    Ability to group Variables (like an agent list, for easier view)
    Thanks
    Marc

    Please submit the enhancement requests to support by opening a case for each request (keep them seperate). Be sure to put in your email description that this is a enhancement request.
    John
    -Tidal TAC

  • Does f90genm alter  fmb files

    At present I am deploying forms9i forms in AIX.These forms were developped in windows.My problem is after I have compiled the forms in AIX if I want to open those forms(fmb files) in windows using form builder it won't open.for doing this I have just used ftp mget to pull the file from aix to windows.Why the fmb files are not recognised by forms builder...has any of you faced and solved this problem?

    I had a similar problem. After using f90gen 9.0.4 on solaris with a 6i fmb I can subsequently open the fmb on windows using builder 9.0.2 or 9.0.4. If I try to open it with 6i builder it complains about the format of the program units and they all disappear. So yes, generating does do 'something' to the fmb.

  • ESA want to retreive logs via cli

    hi,
    i want to retrieve  message tracking logs via cli
    Can some body let me know the procedure

    Retrieve as in FTP copy them?  Or retrieve as in setup syslog to push the logs off to a local syslog server?
    Message tracking cannot be retrieved from CLI.  Only the mail_logs --- which are used to compile the message tracking DB on the appliance(s).
    From the User Guide, 34-36:
    Tracking logs record information about the email operations of AsyncOS. The log messages are a subset of the messages recorded in the mail logs.  The tracking logs are used by the message tracking component to build the message tracking database.
    If you are trying to get the mail_logs...
    You'll need to configure your logs via CLI: 'logconfig' or GUI: System Administration -> Log Subscriptions.  Edit, or suggested to create a new/copy of the log you are needing off-appliance, and set the push as needed per your environment ---
    From the User Guide, 34-6:
    Log Retrieval Methods
    Log files can be retrieved based upon one of the following file transfer protocols. You set the protocol while creating or editing the log subscription in the GUI or via the logconfig command during the log subscription process.
    Log Transfer Protocols
    Manually Download
    This method lets you access log files at any time by clicking a link to the log directory on the Log Subscriptions page, then clicking the log file to access. Depending on your browser, you can view the file in a browser window, or open or save it as a text file. This method uses the HTTP(S) protocol and is the default retrieval method.
    NoteUsing this method, you cannot retrieve logs for any computer in a cluster, regardless of level (machine, group, or cluster), even if you specify this method in the CLI.
    FTP Push
    This method periodically pushes log files to an FTP server on a remote computer. The subscription requires a username, password, and destination directory on the remote computer. Log files are transferred based on a rollover schedule set by you.
    SCP Push
    This method periodically pushes log files to an SCP server on a remote computer. This method requires an SSH SCP server on a remote computer using the SSH1 or SSH2 protocol. The subscription requires a username, SSH key, and destination directory on the remote computer. Log files are transferred based on a rollover schedule set by you.
    Syslog Push
    This method sends log messages to a remote syslog server. This method conforms to RFC 3164. You must submit a hostname for the syslog server and choose to use either UDP or TCP for log transmission. The port used is 514. A facility can be selected for the log; however, a default for the log type is pre-selected in the dropdown menu. Only text-based logs can be transferred using syslog push.
    If you are wanting to just copy over a specific set of logs for a one-time review or to provide... then, assure that FTP is enabled on the interface.  Then, using standard CLI from your desktop - ftp <IP/hostname>.  You'll be in the /configuration directory when you finish authenticating onto your appliance.  After - just simply use standard FTP commands to retrieve the log files you are after.
    Ex.
    $ ftp myesa
    Connected to myesa.
    220 myesa.local Cisco IronPort FTP server (V8.0.1) ready
    Name (myesa:robsherw): admin
    331 Password required.
    Password: 
    230 Login successful.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> ls
    227 Entering Passive Mode (XXX,16,6,165,16,243)
    150 Opening ASCII mode data connection for file list
    drwxrwx---   4 root     config       1024 Apr 25 10:02 configuration
    drwxrwx---   2 root     config        512 Jun  2  2013 captures
    drwxrwx---   2 root     config        512 Jun  2  2013 diagnostic
    drwxrwx---   2 root     log           512 Apr 25 09:58 upgrade_logs
    drwxrwx---   2 root     log          1024 Apr 25 09:58 authentication
    drwxrwx---   2 root     log           512 Apr 25 09:58 system_logs
    drwxrwx---   2 root     log           512 Apr 25 09:58 cli_logs
    drwxrwx---   2 root     log           512 Apr 25 09:58 trackerd_logs
    drwxrwx---   2 root     log           512 Apr 25 09:58 reportd_logs
    drwxrwx---   2 root     log           512 May  2 15:35 slbl_db
    drwxrwx---   2 root     log           512 Apr 25 09:58 ftpd_logs
    drwxrwx---   2 root     log           512 Apr 25 09:58 euq_logs
    drwxrwx---   2 root     log           512 Apr 25 09:59 updater_logs
    drwxrwx---   2 root     log           512 Apr 25 09:59 euqgui_logs
    drwxrwx---   2 root     log           512 Apr 25 10:01 reportqueryd_logs
    drwxrwx---   2 root     log           512 Apr 25 10:02 mail_logs
    drwxrwx---   2 root     log           512 Apr 25 10:02 status
    drwxrwx---   2 root     log          1024 Apr 25 10:02 asarchive
    drwxrwx---   2 root     log           512 Apr 25 10:02 bounces
    drwxrwx---   2 root     log           512 Apr 25 10:02 error_logs
    drwxrwx---   2 root     log          1024 Apr 25 10:02 avarchive
    drwxrwx---   2 root     log           512 Apr 25 10:02 crash_archive
    drwxrwx---   2 root     log           512 Apr 25 10:03 sntpd_logs
    drwxrwx---   2 root     log           512 Apr 25 09:59 gui_logs
    drwxrwx---   2 root     log          1024 Apr 25 10:04 scanning
    drwxrwx---   2 root     log           512 Apr 25 10:04 antispam
    drwxrwx---   2 root     log           512 Apr 25 10:04 repeng
    drwxrwx---   2 root     log           512 Apr 25 10:04 antivirus
    drwxrwx---   2 root     log           512 Apr 25 10:04 encryption
    drwxrwx---   2 root     log           512 Jan 23 10:55 domain
    drwxrwx---   2 root     log          1024 Feb 27 21:21 domain_3
    drwxrwx---   2 root     log           512 Jan 23 10:55 domain_2
    drwxrwx---   2 root     log           512 Apr 25 09:58 slbld_logs
    drwxrwx---   2 root     log           512 May  2 15:35 slbl_isq_db
    drwxr-xr-x   3 root     log           512 Feb  6 00:00 periodic_reports
    drwxrwx---   2 root     log           512 Apr 25 09:58 snmp_logs
    You can then use standard FTP/UNIX commands to navigate through the directory structure, cd mail_logs, for example and mget the files.
    Ex.
    ftp> cd mail_logs
    250 CWD command successful.
    ftp> ls
    227 Entering Passive Mode (XXX,16,6,165,13,125)
    150 Opening ASCII mode data connection for file list
    -rw-rw----   2 root     log       1399268 May  6 15:33 mail.current
    -rw-rw----   2 root     log       1399268 May  6 15:33 [email protected]
    -rw-rw----   1 root     log        145117 Feb 10 11:58 [email protected]
    -rw-rw----   1 root     log        167043 Feb 11 12:03 [email protected]
    -rw-rw----   1 root     log       1943018 Mar  4 14:14 [email protected]
    -rw-rw----   1 root     log       2404319 Feb 27 09:40 [email protected]
    -rw-rw----   1 root     log       1822273 Mar 20 11:58 [email protected]
    -rw-rw----   1 root     log          1267 Mar  4 14:40 [email protected]
    -rw-rw----   1 root     log       3415936 Apr 24 12:55 [email protected]
    -rw-rw----   1 root     log         67740 Mar 24 16:48 [email protected]
    -rw-rw----   1 root     log         70220 Feb  7 15:29 [email protected]
    226 Transfer Complete
    ftp> mget mail.@*
    mget [email protected] [anpqy?]? a
    Prompting off for duration of mget.
    227 Entering Passive Mode (XXX,16,6,165,180,210)
    150 Opening Binary mode data connection for file '[email protected]'
      2% |*** 
    And so it will copy those off...
    Once complete - the files will now be in the directory on your local desktop.
    I hope this helps!
    -Robert
    (*If you have received the answer to your original question, and found this helpful/correct - please mark the question as answered, and be sure to leave a rating to reflect!)

  • FTP Activity - mget multiple files with dynamic names

    Hello All
    Hope all is well.
    I was wondering if there was a way to configure FTP activity to transfer multiple files with dynamic names from source location at daily intervals.
    For example, my source files are affixed with date values (source_filename_<mmddyyyy>_<hh>.txt):
    source_filename_12252009_00.txt
    source_filename_12252009_06.txt
    source_filename_12252009_12.txt
    source_filename_12252009_18.txt
    What I would like my process flow to do would be to download just these 4 files once daily based on a dynamic ftp script as follows:
    open ${Remote.Host}
    ${Remote.User}
    ${Remote.Password}
    cd ${Remote.RootPath}
    prompt off
    mget ????????
    quit
    In DOS batch script you would have the mget command with a wildcard as:
    mget source_filename_%DATE:~0,2%%DATE:~2,2%%DATE:~4,4%*.txt
    How does one go about implementing this in OWB? Does it require a user defined substitution varilable of some sort?
    FYI, I am using version 10gR2.
    Cheers.

    Hi ,
    If you are able to achieve your objective from a DOS batch script then you can call that script for an User Defined Activity in OWB process flow .
    Hope this helps.
    Thanks,
    Sutirtha

  • Trying to use FTP to get data from a different server

    Hi Friends,
        I have to use FTP to get data from a different server and upload it on SAP server. Now my problem is when I m trying to do ftp through command line it brings the file but with no data.
       Through ABAP program nothing is happening.
    Here's my code--
      V_PASSWORD = 'test@123'.
      V_PWD_LEN = STRLEN( V_PASSWORD ).
      CALL FUNCTION 'HTTP_SCRAMBLE'
        EXPORTING
          SOURCE      = V_PASSWORD
          SOURCELEN   = V_PWD_LEN
          KEY         = CS_KEY_500098
        IMPORTING
          DESTINATION = V_PASSWORD.
      CALL FUNCTION 'FTP_CONNECT'
        EXPORTING
          USER            = 'test'
          PASSWORD        = V_PASSWORD
          HOST            = '176.0.1.6'
          RFC_DESTINATION = 'SAPFTPA'
        IMPORTING
          HANDLE          = MI_HANDLE
        EXCEPTIONS
          NOT_CONNECTED   = 1
          OTHERS          = 2.
      CHECK SY-SUBRC = 0.
      cmd = 'lcd d:\ftp'. .
      PERFORM FTP_COMMAND USING CMD.
      CMD = 'asc'.
      PERFORM FTP_COMMAND USING CMD.
      CONCATENATE 'dir' 'ftpt*' INTO CMD SEPARATED BY SPACE.
      PERFORM FTP_COMMAND USING CMD.
      cmd = 'ls'.
    concatenate 'ls' INTO CMD SEPARATED BY SPACE.
      PERFORM FTP_COMMAND USING CMD.
      cmd = 'mget trial.txt'.
    CONCATENATE 'mget' 'trial.txt' INTO CMD SEPARATED BY SPACE.
      CALL FUNCTION 'FTP_COMMAND'
        EXPORTING
          HANDLE        = MI_HANDLE
          COMMAND       = CMD
        TABLES
          DATA          = MTAB_DATA1
        EXCEPTIONS
          TCPIP_ERROR   = 1
          COMMAND_ERROR = 2
          DATA_ERROR    = 3
          OTHERS        = 4.
      IF SY-SUBRC = 0.
        LOOP AT MTAB_DATA1.
          WRITE: / MTAB_DATA1.
        ENDLOOP.
      ELSE.
        CONCATENATE 'Error in FTP Command while executing' CMD INTO ERROR SEPARATED BY SPACE.
        WRITE: / ERROR.
      ENDIF.

    Hi
    try this.....in one of my reqt, i done this successfully....
    FORM FTPCON.
    FTP-------------------------------------------------------*
      CLEAR DSTLEN.
      SET EXTENDED CHECK OFF.
      DSTLEN = STRLEN( S_PWD ).     -
    >  (S_PWD (password) is a selection screen field )                  
      CALL FUNCTION 'HTTP_SCRAMBLE'
        EXPORTING
          SOURCE      = S_PWD
          SOURCELEN   = DSTLEN
          KEY         = KEY
        IMPORTING
          DESTINATION = S_PWD.
      CALL FUNCTION 'FTP_CONNECT'
        EXPORTING
          USER            = P_USER                   -
    > Username
          PASSWORD        = S_PWD             -
    > password
          HOST            = P_HOST                  -
    > Host
          RFC_DESTINATION = P_DEST         -
    > Destination
        IMPORTING
          HANDLE          = HDL
        EXCEPTIONS
          NOT_CONNECTED   = 1
          OTHERS          = 2.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'FTP_COMMAND'
        EXPORTING
          HANDLE        = HDL
          COMMAND       = 'set passive on'
        TABLES
          DATA          = RESULT
        EXCEPTIONS
          TCPIP_ERROR   = 1
          COMMAND_ERROR = 2
          DATA_ERROR    = 3.
      CALL FUNCTION 'FTP_R3_TO_SERVER'
        EXPORTING
          HANDLE         = HDL
          FNAME          = G_FCNAME
          CHARACTER_MODE = 'X'
        TABLES
          TEXT           = T_FILE1
        EXCEPTIONS
          TCPIP_ERROR    = 1
          COMMAND_ERROR  = 2
          DATA_ERROR     = 3
          OTHERS         = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'FTP_R3_TO_SERVER'
        EXPORTING
          HANDLE         = HDL
          FNAME          = G_FCNAME1
          CHARACTER_MODE = 'X'
        TABLES
          TEXT           = T_FILE2
        EXCEPTIONS
          TCPIP_ERROR    = 1
          COMMAND_ERROR  = 2
          DATA_ERROR     = 3
          OTHERS         = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'FTP_DISCONNECT'
        EXPORTING
          HANDLE = HDL.
      CALL FUNCTION 'RFC_CONNECTION_CLOSE'
          EXPORTING
            DESTINATION          = P_DEST
          EXCEPTIONS
            DESTINATION_NOT_OPEN = 1
            OTHERS               = 2.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    ENDFORM.                    " FTPCON
    Hope it helps.....

  • Automated FTP of multiple files

    What's wrong with this picture:
    host='000.000.000.000'
    ftp -v $host << EOF
    cd backups
    lcd /Users/duane/Documents/backups/ftp_uploads
    mput *
    bye
    EOF
    It uploads one file then bails out. Main issue is that it keeps asking me:
    mput myfile2007_0430.tgz [anpqy?]?
    ¿Qué? So either I have to find a switch to offset this silly question or I need to list one file at a time with a for i in... statement.
    The for statement is an issue because I don't want it to print to the screen but just do the job.
    Any help appreciated. :-/

    <pre class="command">
    ftp -v $host << EOF
    cd backups
    lcd /Users/duane/Documents/backups/ftp_uploads
    prompt
    mput *
    bye
    EOF
    </pre>
    From the ftp man page:
    <pre>
    prompt Toggle interactive prompting. Interactive prompting occurs
    during multiple file transfers to allow the user to selec-
    tively retrieve or store files. If prompting is turned off
    (default is on), any mget or mput will transfer all files,
    and any mdelete will delete all files.
    </pre>
    Powerbook G4 1GHz   Mac OS X (10.3.9)  

  • FTP VAN Sender adapter for Sterling Commerce

    Hi,
    I have configured an FTP VAN sender adapter from Seeburger. I am trying to connect to Sterling Commerce VAN and have configured all the parameters as what have been described in the Seeburger manual for FTP/VAN adapter. I am using a custom script as I need to change the mailbox for the polling to take place. Below is my custom script:
    open [@Key=HOST] [@Key=PORT] [@Key=USER] [@Key=PASS]
    cwd SD150xxx/
    type [@Key=TRANSFERTYPE]
    prompt
    mget *
    close
    I configured the comm. channel to use this custom script as:
    file:/temp/script.sh
    When I activated the comm. channel and open the comm. channel monitor in RWB, all I get is this message:
    Adapter has been started. (xxxxx) as node: xxxx
    The polling did not take place although I think I've configured them correctly. The file from the mailbox is not being picked up by the comm. channel. Do you have any idea how to get this to work? FYI, I managed to configure the FTP VAN receiver adapter correctly and it worked. I just have problem with the sender channel but I did not know where I went wrong as the status in RWB did not state any error to the configuration. Pls help.
    Thanks.

    Issue solved.
    We need to configure something in the Seeburger Workbench-Resource Management-Resources. The incoming channels need to be set to be greater than 0. The Seeburger FTP VAN adapter now works as expected.

  • FTP File Adapter: more Archive Directory

    Hello everybody,
    i have some interfaces whit FTP-XI-Idoc scenarion.
    we decided to save files after elaboration in different directory depending on month (yy-mm).
    Example:
    /Rxarchivio/0901
    /Rxarchivio/0902
    I see this link
    https://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature
    very helpfull but i don't know how to parameterize variable of year and month.
    i try with this but don't work:
    SET CC=%DATE:6,4%%DATE:3,2%
    open ftp
    VCE01\selzsapd
    dpas_zles
    cd /Rxarchivio
    mkdir %CC%
    mget
    cd /Rxarchivio/%CC%
    mput
    quit
    any suggestion?

    Hi,
    I m not taking about FTP server. Your PI is on Windows or Unix.
    Id it is on UNIX the put the UNIX script to PI file system and give the path.
    FTP adapter pick the file from FTP location and the pick the UNIX script from PI FIle system and run script ..archive the files and then send message for further processing.
    Thanks
    Aman

Maybe you are looking for

  • 11g and Exp - A bugging bug.

    Before export (exp) i used to to run this script to recompile all the user objects on 10g. create or replace PROCEDURE DBA_Recompile      p_PInstance_ID               IN NUMBER --     DEFAULT NULL * Title:      Recompile all User_Objects * Descriptio

  • Help Ipod Not being read by itunes but computer reads it

    Hey I need help I have used my ipod for months about 4 recently i rebooted my pc and now every time i connect my ipod it shows its connected by the computer and It shows me a message sayin that i have to update my ipod which makes no sence because bo

  • Plz help me solving following issues

    Hi SD experts, Plz help me solving following issues 1) What do you mean by POD(proof of delivery) what is the use of pod? What are the con figuration you done in your project? 2) When I am punching order after entering data like material No and quant

  • How to hide name of Role from the top level navigation of the portal

    Hi Experts, In my project, I have created 2 roles Role A and Role B. These roles have been assigned to User X. When user X logs in, he is able to see name of role that is 'A' in the top level navigation. As per the requirement, user X should not see

  • DROP column from constarints

    Hi, I need to know the command to drop columns from primary key constraints.(some columns) Please help on this, Thanks,