Output to an ftp server via Destinations or Applescript

In Compressor, you can set the Destination of a compression batch to be a remote server, such as an ftp server.
When you start a batch, if the destination is not available or reachable then the documentation (p.230) says: "When there is a problem with your destination, a yellow warning triangle appears. You must resolve this problem before you can successfully transcode."
Although I have not tried it, it implies that if your remote ftp server is not accessible when you drop a file on a created droplet with the Destination set to an ftp server, it won't be able to begin encoding until the destination is available: "As soon as you resolve the problem, the warning triangle disappears and you can continue to transcode." (p.230)
For a lot of people, this is OK.
Some people need to compress and then tranfer the output to a distant location, and they may not have continuous, reliable access to the remote location. They may need to make a temporary connection via modem dial-up, satellite phone or third-world Internet connections. Think news reporters in remote locations.
So, for those people, the option of Applescript should allow them to have their output files saved to a local destination, and then staged up to the ftp server using the built-in commands. But, the problem is that a small file is created at the Destination when the compression is started, and Compressor is not Applescript aware (apart from being able to call an Applescript). This means that any Applescript called as a post processing activity knows nothing about the files Compressor just processed and outputted. It has to glean information about them from the Destination folder where the output files are placed, and then sort out the completed output files from the ones that have just been started, then ftp the completed files up to an ftp server and delete sent files from the Destination folder.
What I would like to see is either
1) a Staged Destination where files are created on the first Destination then staged to a secondary Destination, with an option of keeping these files on the first destination, and/or
2) Applescript support in Compressor which will allow information about the files that have just been compressed to be passed to another Applescript aware application or script.
I would be happy even with some sample Applescript to do the transfer or files from Destination to an ftp server that avoids copying files that haven't been fully processed.
Has anyone else run into these issues?
Bill Lee

Oh, trust me, I do know about Apple and the fact this discussion site is not an official contact point for Apple. I'll be escalating this Request for Enhancement through my contacts at Apple.
There is a reason I have not posted before in this forum (and relates to the above).
There seems to be few people who are using the Applescript post-processing feature, and I was trying to gauge any support for enhancements in this area (and maybe stir up some villagers with pitchforks and burning torches).
Apple will listen to normal users input, but it needs to have a business case that justifies any resources devoted to this. The more people affected, and the greater the impact on your business, and the size/importance of your business has an effect on whether you will get what you want, and when.
Sorry if I was not clear on what I wanted: information as whether this was important for other (non-Apple) people, and whether people had scripts that solved the problem of staging output files to an ftp server that was not consistently connected during the compression process.
Thanks for your reply,
Bill Lee

Similar Messages

  • Transfer Excel file to external FTP server via PGP

    Hi SDN!
    I have build an scheduled report to generated an Excel-file from an internal table and saved it in the database. Now my task is to upload it to an external FTP Server of a partner company. The File contains sensible data and shall be encrypted via PGP.
    How can i upload to an external FTP server and before that, encrypt the file with PGP? I appreciate any help and look forward to reward some great posts.
    Thanks for your help!
    Edited by: Steffen Wieprecht on Aug 7, 2008 1:00 PM

    I found a solution myself, maybe someone is interrested:
    I installed a WS FTP Professional on a Server.
    Onto this server I wrote the files that have to be ftp-uploaded into one specific folder.
    A Perl Script in the scheduled tasks of the machine checks if a new file is in the folder and starts the upload.
    In WS FTP the site upload is defined with all PGP Keys so they are store secure.
    This solution can be used by any programming language that is able to write files in the upload folder.
    Best Regards,
    Steffen

  • How to connect to an FTP server via Midnight Commander _User_Menu_?

    Hi everyone.
    There's a nifty command that works in MC and makes it connect to an FTP server and display its directories just as if they were local ones: cd ftp://USER_LOGIN@SERVER_NAME. The only thing it asks for is a password, obviously. That's exactly what i'm looking for, theoretically.
    I know it's not really a standard Bash command, because if invoked outside MC, it returns an error (directory not found).
    I got kind of tired of typing it in (or copypasting it) every time, so i thought why not make it automatic? A Bash alias or a shell script wouldn't work, because as i said, it's not really a bash command.
    But what surprised me was that it didn't work as an entry in MC's menu, too.
    Tried to go another way, discovered kftp, apparently it's completely not what i am looking for.
    And i didn't even understand what F9 > Left > FTP Link in MC did. It isn't automatic as well anyway, i have to type everything in manually.
    Can anyone advise how to automate FTP connection in MC, or even in Bash (so that MC just treats it like a regular directory)?
    Big thanks in advance.
    Last edited by kiruch (2010-07-04 20:53:44)

    kiruch wrote:mcsilva, here are the contents of my ~/.netrc file: machine ftp.0fees.net login MYLOGIN password MYPWD
    When i invoke cd ftp://ftp.0fees.net, it tells me bash: cd: ftp://ftp.0fees.net: No such file or directory
    This is not the correct way. You are using bash command line. For this to work it must be:
    # mc cd ftp://ftp.0fees.net
    kiruch wrote:When i invoke it as an entry of MC's menu (what i'm aiming for), i get /tmp/mc-cyril/mcusr6BWdYd: line 2: cd: ftp://ftp.0fees.net: No such file or directory - well, basically the same.
    I don't know what do you mean by "invoke an entry of MC's menu",
    Is this:
    Left->FTP link or Right->FTP link ?
    kiruch wrote:And finally, if i type cd ftp://ftp.0fees.net manually into MC's command prompt, i get a red alert message that says Cannot chdir to "ftp://ftp.0fees.net". Input/output error (5)
    In the first post you said you were able to login with "cd ftp://USER_LOGIN@SERVER_NAME", so MC is working well.
    This error you showed is the same which I have when I type "cd ftp.0fees.net" in the MC command prompt (maybe you typed wrong...)
    Instead, when I try "cd ftp://ftp.0fees.net" the popup error is:  "ftpfs: Login incorrect for user anonymous"
    This is what I expected, because I don't have the username and password and I'm trying a anonymous login.
    Are you sure your typing is right? Please, check your typing and try again.

  • How to transfer the attachment (DB object in the table:SOC3) to FTP Server

    Hi,Experts:
         I have a requirement to transfer an attachment to FTP Server,but the attachment have exist in  DB for objects  table(SOC3),I can down it to local PC via FM:SO_OBJECT_DOWNLOAD,but  i can't transfer it to FTP Server via Dataset?
    Thanks a lot in advance...........

    Hi Marcel,
    Thanks for the reply,
    I have exported the .gml file from the dev server Then i trying to import that .gml file in the production server. when i click on the import file option .it is opening the popup and disappearing immediately with out browsing the file I dont know wht is the problem around it.
    But agin in the production server, i have just opend one existing model. then i clicked on the Import file option. then the popup is allowing me to browse the .gml file. but after i browsed the file,  if say ok, it will be merging with the already opened model itself.
    Can u please tell me , what is the problem, i am not able to browse the file ,when no model is not opened in the VC.
    REgards
    Vijay

  • OWB 11.2.0.1 SAP LOCATION: Problem with separate FTP Server connection

    Hello,
    hope somebody can help me. We are working on a BI Project by our Customer with a Exadata Machine.
    The Goal of this project is to have the DWH on the Oracle Exadata machine.
    At the Moment we have the Development System on a separate Server with OWB 11.1. and are to get stuck because we can't work with OWB 11.2 with the problem we have.
    Separate for the coming Migration we set up for testing a machine with OWB 11.2.0.1 (Exadata is productiv system, so not available for testing)
    The SAP System of the customer is on a separate physical Machine as the FTP Server.
    The new possibility from the OWB 11.2 SAP Location allowed choose between different transport type, also for a separate FTP Server.
    We took FTP as Transport Type and we input the FTP IP Adress, User etc.
    The Inputs are all correct, we have also check if its possible to connect the FTP server via fillezilla, via cmd -- all works fine
    But OWB 11.2 show us by test the connection this Error:
    ENV0032: Location SAP_TEST is invalid. Check that you provided the PASSWORD or+
    valid values for at least one of the set of mandatory parameters+
    HOST_LOGIN_HOST+
    I know that seems as if some is not ok with the password or the other parameters.
    But all inputs are correct and the password doesn't contains any special character.
    Also the connection to the SAP system works fine with OWB 11.2 but not with the FTP System.
    Have somebody experience with this error or on a project by customer with separate SAP and FTP System?
    Thanking you in anticipation

    Hello,
    hope somebody can help me. We are working on a BI Project by our Customer with a Exadata Machine.
    The Goal of this project is to have the DWH on the Oracle Exadata machine.
    At the Moment we have the Development System on a separate Server with OWB 11.1. and are to get stuck because we can't work with OWB 11.2 with the problem we have.
    Separate for the coming Migration we set up for testing a machine with OWB 11.2.0.1 (Exadata is productiv system, so not available for testing)
    The SAP System of the customer is on a separate physical Machine as the FTP Server.
    The new possibility from the OWB 11.2 SAP Location allowed choose between different transport type, also for a separate FTP Server.
    We took FTP as Transport Type and we input the FTP IP Adress, User etc.
    The Inputs are all correct, we have also check if its possible to connect the FTP server via fillezilla, via cmd -- all works fine
    But OWB 11.2 show us by test the connection this Error:
    ENV0032: Location SAP_TEST is invalid. Check that you provided the PASSWORD or+
    valid values for at least one of the set of mandatory parameters+
    HOST_LOGIN_HOST+
    I know that seems as if some is not ok with the password or the other parameters.
    But all inputs are correct and the password doesn't contains any special character.
    Also the connection to the SAP system works fine with OWB 11.2 but not with the FTP System.
    Have somebody experience with this error or on a project by customer with separate SAP and FTP System?
    Thanking you in anticipation

  • Sometimes get error "looking for something on MobileMe?" after publishing via ftp server

    I published a website I created on iWeb via an ftp server.  Sometimes it works, but sometimes I get the error "Looking for something on MobileMe?"  My web host says all my settings are correct, so the problem is likely to be in iWeb.  How can I fix this?

    I use FatCow as both my domain registrar and my web host, a similar service to GoDaddy.  The FatCow tech support said all my settings were correct.  Here's a pic of the iWeb Site Publishing Settings page:
    When I try "Test Connection," it succeeds.
    I originally published using MobileMe, then switched to ftp using FatCow.  The ftp publishing worked at first, then I started getting the error message intermittently, now get it all the time.  The FatCow tech thought that something is likely to be imbedded in the code that is taking it to MobileMe.
    Thanks again for your help!

  • I can't connect to Windows Server via FTP

    I've been using FTP for about 13 years and it works fine on Apache servers but can't connect to a windows Server via my Fetch FTP program. The site owner sent me a screenshot and copied/pasted the password so I know I have the info correct. It is still giving me errors.
    Is there a special method to connect to Windows server via FTP?

    Hi Lorel,
    Try FileZilla...
    https://filezilla-project.org/

  • FTP Access on OSX Server via a browser

    I have a number of ftp clients set up which can succesfully upload/download files using ftp client software (Fetch/Easy FTP).
    I have a windows user who wants to upload his stuff via ftp in his web browser (IE presumably).
    Not had any success (Guest access is disabled) with his account settings in browser though I can get in using same settings in ftp client.
    Is this possible with the built in ftp element of OSX Server without having to install something like Rumpus?

    IE is the only browser I know of that supports FTP upload via the web browser window. Most Mac browsers that I'm aware of simply pass the FTP connection off to the Finder to deal with.
    The Finder, of course, doesn't support FTP upload.
    So unless your clients are comfortable working in the command line, you're going to need some additional software. That software could be as simple as an AppleScript application that performs the upload, but you're going to need something.

  • How do I restrict access to the RT Series PXI Controller via its FTP server?

    The RT Series PXI Controllers run an FTP server, so I can view files on the controller over the Internet wtih a Web browser. I can also download and upload files with a Web browser. How can I instruct the FTP server to give access only to specified, trustworthy FTP clients?

    It is possible to "Lock" the controller from the Measurement and Automation Explorer program. The password you set when locking the controller (which prevents others from making configuration changes to the controller while running) is the same password that controls access to the FTP server. When the controller is unlocked, anyone who can access the PXI controller's IP can read, write, and delete files on the FTP server. When locked, anyone can read data from the FTP server, but only when logged in with the lock password will you have access to write or delete data.
    For more information on locking your controller, see the user manual, MAX online help, or the following link.
    NI Developer Zone: Controlling Access to LabVIEW Real-Time PXI Targets

  • In FTP server file not storing in proper order when 'FTP_R3_TO_SERVER'

    Dear ,
    when i used FTP_R3_TO_SERVER to download data in FTP server 
    i checked in FTP server  file is not storing in proper order in FTP server . plz help how to get the file in proper order .it urgent . full points must be given. i given code below .
    DATA : BEGIN OF iresult OCCURS 5,
    rec(450),
    END OF iresult ,
    DATA :
    dest LIKE rfcdes-rfcdest VALUE 'SAPFTP',
    compress TYPE c VALUE 'N',
    host(64) TYPE c.
    DATA: hdl TYPE i.
    DATA: BEGIN OF result OCCURS 0,
    line(100) TYPE c,
    END OF result.
    DATA : key TYPE i VALUE 26101957 ,
    dstlen TYPE i,
    blob_length TYPE i.
    host = p_host  .
    DESCRIBE FIELD p_password LENGTH dstlen IN CHARACTER MODE.
    CALL 'AB_RFC_X_SCRAMBLE_STRING'
    ID 'SOURCE' FIELD p_password ID 'KEY' FIELD key
    ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD p_password
    ID 'DSTLEN' FIELD dstlen.
    CALL FUNCTION 'FTP_CONNECT'
    EXPORTING
    user = p_user
    password = p_password
    host = host
    rfc_destination = dest
    IMPORTING
    handle = hdl
    EXCEPTIONS
    not_connected = 1
    OTHERS = 2.
    IF sy-subrc = 0.
    CONCATENATE 'cd' ftppath INTO ftppath SEPARATED BY space .
    CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
    handle = hdl
    command = ftppath
    TABLES
    data = result
    EXCEPTIONS
    command_error = 1
    tcpip_error = 2.
    IF sy-subrc = 0 .
    CLEAR result .
    REFRESH result .
    CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
    handle = hdl
    command = 'ascii'
    TABLES
    data = result
    EXCEPTIONS
    command_error = 1
    tcpip_error = 2.
    IF sy-subrc = 0 .
    DESCRIBE TABLE iresult LINES lines.
    blob_length = lines * width .
    clear : lines.
    Delete the existing file
    CONCATENATE 'del' ftpfile INTO delfile SEPARATED BY SPACE.
    CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
    handle = hdl
    command = delfile
    TABLES
    data = result
    EXCEPTIONS
    command_error = 1
    tcpip_error = 2.
    *End of deleting the existing file
    CALL FUNCTION 'FTP_R3_TO_SERVER'
    EXPORTING
    handle = hdl
    fname = ftpfile
    blob_length = blob_length
    TABLES
    blob = iresult
    EXCEPTIONS
    TCPIP_ERROR = 1
    COMMAND_ERROR = 2
    DATA_ERROR = 3
    OTHERS = 4.
    IF sy-subrc 0 .
    WRITE 'Error in writing file to ftp' .
    ELSE.
    WRITE 'File downloaded on the ftp server successfully'.
    ENDIF.
    ENDIF.
    ELSE.
    WRITE : 'Path on ftp not found : ' , ftppath .
    ENDIF.
    CALL FUNCTION 'FTP_DISCONNECT'
    EXPORTING
    handle = hdl.
    CALL FUNCTION 'RFC_CONNECTION_CLOSE'
    EXPORTING
    destination = 'SAPFTP'
    EXCEPTIONS
    OTHERS = 1.
    ELSE.
    WRITE 'Could not connect to ftp' .
    ENDIF.
    ENDFORM. " FTPFINANCEACCESS_DOWNLOAD
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF screen-name = 'PASSWORD'.
    screen-invisible = '1'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    Edited by: manoj kv on Feb 27, 2008 12:55 PM
    Edited by: manoj kv on Feb 28, 2008 5:37 AM
    Edited by: manoj kv on Feb 28, 2008 5:39 AM
    Edited by: manoj kv on Mar 5, 2008 2:15 PM
    Edited by: manoj kv on Mar 7, 2008 12:51 PM

    Hello,
    Did you try to put 'X' to the parameter CHARACTER_MODE.
    Hope it will help you
    Olivier

  • Windows 8.1 Pro - FTP.exe not able to put file to FTP Server

    Hi
    We have replaced our Windows XP environment to Windows 8.1 Pro. Now I have problem with sending files through FTP to very old devices. Devices are runninng FTP Servers. Each time I try to "PUT" file on Windows 8.1 I receive message after some time:
    "Connection closed by remote host"
    If I make the same on Windows XP file is stored on FTP successfully. 
    From Windows 8.1 I am able to upload software only via Filezilla, but I need command line solution like FTP.exe or ncFTP.exe (non of them are able to stor file)
    I have observed in Wireshark, that ftp.exe sends about 80kB of data, waits for some time and then it stops.
    Summary of my problem:
    Source Appl      
    Destination
      Status
    Win XP ftp.exe  
    FTP Server upload ok
    Win 8.1 ftp.exe  
    FTP Server upload failed
    Win 8.1 ncFTP.exe
    FTP Server upload failed
    Win 8.1 filezilla  
    FTP Server upload ok (but no command line solution)
    Win 8.1 environment:
    - standard installation of Windows 8.1 with newest Microsoft patches
    - firewall ports - opened for inbound and outbound traffic
    - no antivirus
    FTP Server on problematic devices:
    - old FTP Server, transfer in passive mode
    I need command line solution tu upload files. Now I am not able to upload 1500 devices as we don't have Windows XP anymore.
    What I have observed, when I type "PUT file" it takes about 20-30 seconds to start transfer on Windows XP or through filezilla.
    Is there any problem with timeout in Windows 8.1 when it transfer files to old FTP server (working in passive mode)?
    Thanks and regards,
    Marcin

    Hi Marcin,
    Here is a thread talking about Windows 8.1 and FTP, see:
    Windows 8.1 and FTP problems
    https://social.technet.microsoft.com/Forums/windows/en-US/db3793a6-2810-464c-af9a-522b05f51ba9/windows-81-and-ftp-problems?forum=w8itprogeneral
    Further, I am currently checking on the issue, if more things found out, I will update here.
    Thank you for your understanding.
    Best regards
    Michael Shao
    TechNet Community Support

  • File2file-receiver-comm channel-incorrect ftp server

    Hello,
    The scenario is file (xml) to file (xml) to jumpstart the learning process.
    config details:-
    a) sender
    ftp file "/xi_input.dat" from server 10.20.30.98
    processing mode: "delete"
    b) receiver
    ftp file "/xi_output.dat" to server 10:20:30:98
    file construction mode: "create"
    Expected result:-
    file at sender should be read by XI and deleted. Output file should be created by XI.
    Acheived result:-
    SXMB_MONI status is "processed successfully-(white black flag). XI read sender file "xi_input.dat" and it was deleted as requested in the config. But there was no output file "/xi_output.dat". Then chaged the FTP server at receiver to 10.20.30.98. This resulted in creation of /xi_output.dat
    Question:-
    Though I got the desired result, I was unable to find the error from SXMB_MONI by myself.
    I could manage to debug and find the sequence of actions, here it goes:-
    tointerfacename->service->channel->file adapter->ftp mode
    but there is no trace about why /xi_output.dat is not created via ftp (due to typo error in server name).
    Please look at the log and advise why SXMB_MONI didn't report this error? or point me how to debug better.
      <SAP:ToInterfaceName>mi_name_in</SAP:ToInterfaceName>
      <SAP:ToInterfaceNamespace>urn://file2file_2</SAP:ToInterfaceNamespace>
    - <SAP:OutboundBindingAttributes>
      <SAP:AdapterTypeData xmlns:SAP="http://sap.com/xi/XI/Message/30" />
      </SAP:OutboundBindingAttributes>
    - <SAP:HeaderMapping>
      <SAP:FieldMapping xmlns:SAP="http://sap.com/xi/XI/Message/30" />
      </SAP:HeaderMapping>
    - <SAP:ChannelEntry version="30">
      <SAP:PartyName xmlns:SAP="http://sap.com/xi/XI/Message/30" />
      <SAP:ServiceName xmlns:SAP="http://sap.com/xi/XI/Message/30">sevice</SAP:ServiceName>
      <SAP:ChannelName xmlns:SAP="http://sap.com/xi/XI/Message/30">cc_in</SAP:ChannelName>
      <SAP:AdapterName xmlns:SAP="http://sap.com/xi/XI/Message/30">File</SAP:AdapterName>
      <SAP:AdapterNamespace xmlns:SAP="http://sap.com/xi/XI/Message/30">http://sap.com/xi/XI/System</SAP:AdapterNamespace>
      <SAP:AdapterSWCV xmlns:SAP="http://sap.com/xi/XI/Message/30">3B787A8035C111D6BBE0EFE50A1145A5</SAP:AdapterSWCV>
      <SAP:AdapterEngineType xmlns:SAP="http://sap.com/xi/XI/Message/30">AE</SAP:AdapterEngineType>
      <SAP:AdapterEngineName xmlns:SAP="http://sap.com/xi/XI/Message/30" />
      <SAP:MessageProtocol xmlns:SAP="http://sap.com/xi/XI/Message/30">File</SAP:MessageProtocol>
      <SAP:MessageProtocolVersion xmlns:SAP="http://sap.com/xi/XI/Message/30">3.0.0527</SAP:MessageProtocolVersion>
      <SAP:TransportProtocol xmlns:SAP="http://sap.com/xi/XI/Message/30">FTP</SAP:TransportProtocol>
      <SAP:TransportProtocolVersion xmlns:SAP="http://sap.com/xi/XI/Message/30" />

    Thanks. The error is exactly what I was looking for.
    In RTW->CC->log
    Error Attempt to process file failed with Error occurred while connecting to the FTP server "10:20:40:92:21": java.net.UnknownHostException: 10:20:40:92
    Now RTW still has red for receiver communication channel with the note
    "In the Last 4 Hours Server 0 50_40103 Communication channel is correctly configured and started "
    I performed stop and start to the communication channel it results in red status. However it is creating the file without problems.
    Any way to make communicaton channel green?

  • Report to be sent to FTP server

    Hi friends,
    I have a requirement where i have to send the report output(downloaded into file) to FTP server from where it will be send to the users through sms..
    please, guide me as how to send it to ftp server
    thanks,
    -pankaj

    Dear ,
    when i am trying to send data in internal table of type charterter declared below(i.e iresult) to FTP SERVER program giving the DATA ERROR = 3 when 'FTP_R3_TO_SERVER'  fuction module is exected and file it not creating in ftp server . plz help me pointS must be given .
    the FTP_CONNECT ,FTP_COMMAND function modules are executing properly giving handle 1 and its sy-subrc = 0 .
    when 'FTP_R3_TO_SERVER'  is executed it is giving SY-SUBRC = 3 ( DATA ERROR ) i.e it is failing to out internal table data in FTP SERVER . PLZ HIDE ME ITS URGENT .
    THIS IS CODE I USED .
      DATA :     BEGIN OF iresult OCCURS 5,
            rec(450),
           END OF iresult,
      DATA  :
              dest LIKE rfcdes-rfcdest VALUE 'SAPFTP',
              compress TYPE c VALUE 'N',
              host(64) TYPE c.
      DATA: hdl TYPE i.
      DATA: BEGIN OF result OCCURS 0,
            line(100) TYPE c,
            END OF result.
      DATA : key TYPE i VALUE 26101957,
             dstlen TYPE i,
             blob_length TYPE i.
      host = p_host .
      DESCRIBE FIELD p_password LENGTH dstlen IN CHARACTER MODE.
      CALL 'AB_RFC_X_SCRAMBLE_STRING'
        ID 'SOURCE'      FIELD p_password    ID 'KEY'         FIELD key
        ID 'SCR'         FIELD 'X'    ID 'DESTINATION' FIELD p_password
        ID 'DSTLEN'      FIELD dstlen.
      CALL FUNCTION 'FTP_CONNECT'
        EXPORTING
          user            = p_user
          password        = p_password
          host            = host
          rfc_destination = dest
        IMPORTING
          handle          = hdl
        EXCEPTIONS
          not_connected   = 1
          OTHERS          = 2.
      IF sy-subrc = 0.
        CONCATENATE 'cd' ftppath INTO ftppath SEPARATED BY space .
        CALL FUNCTION 'FTP_COMMAND'
          EXPORTING
            handle        = hdl
            command       = ftppath
          TABLES
            data          = result
          EXCEPTIONS
            command_error = 1
            tcpip_error   = 2.
        IF sy-subrc = 0 .
          CLEAR result .
          REFRESH result .
          CALL FUNCTION 'FTP_COMMAND'
            EXPORTING
              handle        = hdl
              command       = 'ascii'
            TABLES
              data          = result
            EXCEPTIONS
              command_error = 1
              tcpip_error   = 2.
          IF sy-subrc = 0 .
            DESCRIBE TABLE iresult LINES lines.
            blob_length =  lines * width .
            clear : lines.
    Delete the existing file
         CONCATENATE 'del' ftpfile INTO delfile SEPARATED BY SPACE.
          CALL FUNCTION 'FTP_COMMAND'
            EXPORTING
              handle        = hdl
              command       = delfile
            TABLES
              data          = result
            EXCEPTIONS
              command_error = 1
              tcpip_error   = 2.
    *End of deleting the existing file
            CALL FUNCTION 'FTP_R3_TO_SERVER'
              EXPORTING
                handle        = hdl
                fname         = ftpfile
                blob_length   = blob_length
              TABLES
                blob          = iresult
              EXCEPTIONS
                TCPIP_ERROR   = 1
                COMMAND_ERROR = 2
                DATA_ERROR    = 3
                OTHERS        = 4.
            IF sy-subrc <> 0 .
              WRITE 'Error in writing file to ftp' .
            ELSE.
              WRITE 'File downloaded on the ftp server successfully'.
            ENDIF.
          ENDIF.
        ELSE.
          WRITE : 'Path on ftp not found : ' , ftppath .
        ENDIF.
        CALL FUNCTION 'FTP_DISCONNECT'
          EXPORTING
            handle = hdl.
        CALL FUNCTION 'RFC_CONNECTION_CLOSE'
          EXPORTING
            destination = 'SAPFTP'
          EXCEPTIONS
            OTHERS      = 1.
      ELSE.
        WRITE 'Could not connect to ftp' .
      ENDIF.
    ENDFORM.                    " FTPFINANCEACCESS_DOWNLOAD
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'PASSWORD'.
          screen-invisible = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

  • How can i do scheduled automatic backups to an ftp server in ios xr?

    Hello guys! As the title says im looking forward to automatically back up my running config on a cisco CRS-1 to an FTP server. I was only able to find this config example:
    Configuration commit auto-save filename ftp://A.B.C.D/myconfig.txt
    This allows me to save my config to an ftp server everytime i use commit on the device. Now i want to know if there's a way to automatically save my configs everyday at 00:00  and also include the date and time in the name of the file so i don't overwrite the existing files in the ftp server.
    I dont want to use any tool i just wanna know if what im asking is possible via CLI commands. I would greatly appreciate your help with this subject.
    Regards,
    David

    Not sure if this script will work on a CRS, but try this:
    archive
    log config
    logging enable
    hidekeys
    path tftp:///$h-
    write-memory
    time-period 10080
    Explaination: 
    There are two ways to save your config to your remote station:
    1.  When someone saves the config; and
    2.  At an alloted time period, expressed in 10080 (weekly for me). 

  • Error when scheduling WEBI report to FTP server

    Hi
    We are getting error "destination directory error. CrystalEnterprise.Ftp: 550 Requested action not taken" while scheduling WEBI report to FTP server.
    Any help would be appreciated
    Regards,
    Anisa

    Hi All,
    I want a run my report once by scheduling, so i provide a time interval for scheduling a report
    start date/ time : 11:38:AM 10/30/2011
    end date/time : 11:43:AM 10/30/2011
    after completion of end time....report is failed and fetching an error
    Error : Object could not be scheduled within the specified time Interval
    Any solution for resolving this error

Maybe you are looking for