Delete files over secure FTP

Hi all.
We're using the "secure FTP get" step successfully in our package, using certificate-based authentication.
A new requirement has come up: we must delete the remote file after we retrieve it.
Is there a way to do this, say, in Jython? It's not clear whether the snpsftp library supports SSL connections using certificate-based authentication.
Thanks,
-John

John,
snps FTP doesnt not support SSL connections.
And I couldnt find a Jython lib that supports SSL.

Similar Messages

  • Failed to delete file after processing FTP

    Failed to delete file after processing. The FTP server returned the following error message: 'com.sap.ai i.adapter.file.ftp.FTPEx: 550 Unexpected reply code *.txt: The process cannot access the file because it is being used by another process. '. For details, contact your FTP server vendor.
    I got this error many times for the same interface. Not sure what is the reason for this.
    Searched on internet go comments that this is because of FTP version!
    Please help

    It is the "Msecs to Wait Before Modification Check" in the Sender Adapter that ensures this. It works like this: PI starts processing, finds a file, then waits the number of miliseconds specified and checks the file again to see if it has changed over the waiting period. If so, then it waits again to make sure the file is written completely. Only if no changes took place over the waiting period, it starts processing the file.
    And the fact that your file was successfully processed at retry only confirms that it might have been still written to by the sender system. You can try comparing file's creation timestamp (in OS level) with its processing start time in PI - this could prove me right.
    Edited by: Grzegorz Glowacki on Jan 13, 2012 2:15 PM

  • Delete file from an FTP folder

    Hi expert,
    I wanna know if it's possible delete with abap command a file from a FTP folder.
    I mean, there is a ftp folder periodically filled with excel files. An ABAP program read this folder and the files content must be moved in a SAP Table. Aftre this, I must delete excel files with an abap command write in the same abap program.
    Thanks a lot
    Michele Garofalo

    1) read directory with fm EPS_GET_DIRECTORY_LISTING
    2) process table dir_list
    and 3) finally delete files with
    abap command:  DELETE DATASET dsn.
    hope that helps
    Andreas

  • Could'nt delete file after processing  sender file in windows environment ?

    Hi,
    I have problem with sender file adapter in windows 2003 server, because the file adapter cannot delete the file after processing, seems like permission problem. but then i have set full controll access to the pi7adm (sap instance admin). but the problem still persist.
    Please advise, me.
    Thank you and Best Regards
    Fernand

    Hi,
    Of course i set delete option in my CC sender, but the fail adapter couldn delete fail without any reason ?
    This is the error message from RWB Could not delete file 'K:\WORKDIR\FTP\data\data1.fer1' after processing.
    like i mention before i have set full access to sap admin user to the directory. but the error still persist.
    any idea.
    Cheers
    Fernand

  • Using Secure FTP to extract a file

    Dear all
    we want to create a mapping to read data from a set of tables and after some transformation to export the data into a flat file over a secure FTP protocol to a remote location.
    I am wondering :
    a) if that is feasible and if yes, then
    b) what are the parameters we have to use to achieve that.
    many thanks in advance

    A quick search at google reveals there are plenty of FTP libraries available for the various mainstream programming languages (Java, C, C++ etc).
    However, FTP has a very basic command set. (MKDIR, GET, PUT, DEL etc).
    So you are not going to be able to perform more advanced document management tasks (such as lock a document, check-in, check-out, modify metadata, modify security, search, sort etc) through standard FTP commands.
    In terms of setting metadata through FTP, you could potentially store the various processing instructions required in some type of XML file (or equivalent) and upload this XML file to the repository. A custom event handler could be created that listens for DOCUMENT_CREATED events, and then attempts to process the XML files and perform the various instructions contained within by calling the appropriate in-process Content DB FDK API.
    It's ugly, but possible.
    cheers
    Matt.

  • Thoughts regarding encryption & non-securely deleted files

    Let's say you have a USB drive, non encrypted, from which you over the years have deleted a bunch of files - non-securely. Since you realize that the files are sensitive, you now choose to encrypt the drive with the right-click -> Encrypt function. Furthermore, you also set the trash can to always securely delete files from now on.
    What worries me about this scenario are the old files that were deleted non-securely, before encryption: If someone would steal the drive and attempt to restore data that hasn't yet been overwritten, would those deleted files be accessible to that person? Or have the encryption effectively scrambled those old files as well?
    I know that the best option is to do a 7-pass format and encrypt the drive and then move your files to it, but that isn't always an option (you might not have space to store files temporarily somewhere else, for example).
    An other thing about "secure delete" which isn't really clear: Does the secure delete also overwrite previously deleted files or just the ones from the point in time when you turned on the setting?

    If someone would steal the drive and attempt to restore data that hasn't yet been overwritten, would those deleted files be accessible to that person?
    No. Every block on the drive will be encrypted, including free blocks.

  • Delete file from FTP server

    Hi All, 
    I have a requirement where I need to delete a file from the FTP server. How do I do that?
    Thanks in Advance.
    Regards
    Jaspreet

    Hi,
    refer this link,
    [ABAP solution to implement FTP transactions |http://wiki.sdn.sap.com/wiki/display/Snippets/ABAPsolutiontoimplementFTP+transactions]
    Regards,
    Vijay

  • Can we do a Secure FTP for an XML file from ABAP when firewall is enabled?

    Hi all,
    I have a requirement to send an XML file to an External FTP Server which is out of our corporate network and our firewall is enabled.
    I have to send an XML file with Purchase Order details. I completed that with the help of this blog https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2657. [original link is broken] [original link is broken] [original link is broken]
    Now I need to FTP the XML file that is generated. How should I be doing this? Can some of help me with this?
    I need to do a Secure FTP to the external non SAP server which is out of our corporate network and our firewall is enabled. Can some one tell me if SFTP is possible in ABAP.
    This is not a web service. I am working on dropping an XML file in an external FTP serveru2026 I have searched the forums but still in a confusion if weather Secure FTP is possible in ABAP  or not when our company firewall is enabledu2026
    If some one encountered this situation earlier please help,,,..any help will be highly appreciated.
    Regards,
    Jessica Sam

    Thanks a lot for your valuable suggestions Richu2026
    I agree with you Rich that web services would be a better option. But I need to send this file to an external third party and they dont have web services.
    They are telling us that either we can send them an XML file or a CSV file in the format that they want. We decided to go with XML file format.
    I am done with formatting the Purchase Order details in the format that they want. Now the challenge is that I need to send this FTP file to them and it should be a Secure FTP when our fire wall is enabled,
    When you say
    1) Run an ABAP program to generate the XML file and put it on the local PC
    2) Log into the FTP site via some FTP client, could simply be windows as well.
    3) Manually cut/paste the file from the PC to the FTP site.
    For Step 1 running ABAP Program can I schedule a batch job?
    For Step 2 and Step 3 can I automate it in any other way..if not in ABAP?
    Can I advice my company to follow any alternate method in which they can automate this step 2 and step 3u2026if not in ABAP can it be possible in any other way as the third party does not have web services I now have no other alternative.
    Please Helpu2026
    Regards,
    Jessica Sam

  • How to delete file on ftp server

    hello,how to delete file on ftp server?thank you!

    I was trying to hint to the fact that you gave no where near enough information.
    Have you already written anything? Such as software that will connect to an FTP server?
    Are you using a 3rd party package?
    Are you doing it by hand, using sockets?

  • Retreiving files over http or ftp.

    I was wondering what program I should use to retreive files over http or ftp. Previously I had used wget per my hosting provider's recommendation. It worked when I was ssh logged in to his server (via Mac Terminal). However, when I try using wget on my local Mac it says "command not found".

    Thanks. So if I specify a file name (-o /path/to/file), does the incoming file get renamed to that (and put in that location) or does this specify the directory (-o /path/to/directory) that the incoming file will go to? I wasn't quite clear on that.
    Also, I keep hearing about stdout. What is it exactly? I assumed it was just the Terminal window itself, the alternative being things like | more or | nano or something like that... Or am I totally up the wrong tree?

  • Urzent: Delete files in FTP server using FTP receiver adapter

    Hi Experts,
    We are doing 2 asyncronous scenarios. frst scenario should delete existing file and place the request file. Second scenario should pick(delete) response file and delete request file it placed also.
    Scenario 1 : File(NFS) to FTP  (Asynchronous)
    Scenario 2: FTP to NFS  (Asynchronous)
    Scenario 1: (Receiver FTP Adapter )
    step-1: PI has to delete all existing files in FTP server
    step-2: PI has to place Request file in FTP
    Scenario-2: ( Sender FTP Adapter)
    step-1: PI has to Delete request file i FTP server
    Step-2: PI has to pick and delete response file in FTP server
    Doubts:
    How can we do above steps in PI
    Thanks,
    Murali

    Hi Krish - For scenario -1 You have to make use of the OS commands to delete the files on FTP server before placing the request file.
              -> write some script which wil connect to the FTP server and delete the files.
              -> call that script from the file adapter "using execute OS commands" option
    For scenario -2 :
    pick both the files(request and response) and set the processing mode to delete..
    during the receiver determination, process only request files(based on filename/content)

  • Should files be securely deleted if using File Vault?

    Do I need to "shred" or in someway securely delete files and mail that sit in File Vault? I am new to the MacOS and I am not sure where deleted files/mail go. If they don't leave the Home Folder it should be ok but if they somehow are relocated outside the Home Folder, I assume I would have a problem unless they are securely deleted.

    Interesting question, sgmiller.
    The default Trash location is a hidden directory in your Home folder, ~/.Trash, which would be in your File Vault, assuming the File Vault includes your entire Home directory and doesn't leave anything out.
    When you delete a file, its directory entry is updated, rewriting the parent directory of the file to the ~/.Trash folder. Then when you empty the Trash, the directory entry of the file is simply removed and the file disappears from the file system. They don't really go anywhere, they just disappear. However, the bytes still remain on the disk until something else comes along and writes to those sectors, so Secure Delete can be used to overwrite the previously used areas of the disk with zeros.
    I guess it depends on how careful you want to be. You may also be interested in using Secure Virtual Memory if you aren't already, under "System Preferences->Security".
    Clear as mud, my apologies!

  • I have an error message "page_bottom_overlay-2.png" which comes up when I try to publish.  There is a large X with a Question mark in the middle over the entire background of the page.  The error message says the file is missing.  I did not delete files.

    I have an error message "page_bottom_overlay-2.png" which comes up when I try to publish.  There is a large X with a Question mark in the middle over the entire background of the page.  The error message says the file is missing.  I did not delete files.  How can I find files that seem to be missing?

    This is probably one of the files that is required by the template you are using.
    These files are inside the iWeb app. Control click the iWeb app icon and select "Show package contents".
    You need to dig down through the folders and files to find what you want...
    Contents/Resources/da.lproj/Templates/
    If the file is missing you would need to re install the iWeb app...
    http://www.iwebformusicians.com/iWeb/iWeb-Tips.html

  • Secure ftp of files stored in a directory on the operating system

    Is it possible to secure ftp files directly from the server without first storing them in the flows database? (Apex 3.2; Oracle 10g 10.2.0.4; Oracle Unbreakable Linux 4). If so, are there security issues?

    Hi ,
    Use EPS_GET_DIRECTORY_LISTING
    Refer the below code I have used in one of my assignment.
    DATA:   l_check_msg(50)  TYPE c,
              l_filemask       LIKE epsf-epsfilnam.
      CONCATENATE p_sysid '*' INTO l_filemask.
      CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
           EXPORTING
                dir_name               = wa_ztsifregi-pathname
                file_mask              = l_filemask
           TABLES
                dir_list               = i_files
           EXCEPTIONS
                invalid_eps_subdir     = 1
                sapgparam_failed       = 2
                build_directory_failed = 3
                no_authorization       = 4
                read_directory_failed  = 5
                too_many_read_errors   = 6
                empty_directory_list   = 7
                OTHERS                 = 8.
      IF sy-subrc NE 0.
        CASE sy-subrc.
          WHEN 1.
            l_check_msg = 'Invalid subdirectory'(005).
          WHEN 2.
            l_check_msg = 'EPS_GET_DIRECTORY_LISTING failed'(006).
          WHEN 3.
            l_check_msg = 'Build directory failed'(007).
          WHEN 4.
            l_check_msg = 'No authorization'(008).
          WHEN 5.
            l_check_msg = 'Read directory failed'(009).
          WHEN 6.
            l_check_msg = 'Too many read error'(010).
    *      WHEN 7.
    *        l_check_msg = 'Empty directory'(011).
          WHEN OTHERS.
            l_check_msg = 'Unexpected error from function module'(012).
        ENDCASE.
    Hope this solves your query.
    Regards
    Abhii
    Regards
    Abhii

  • How to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 using ftp

    how to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 device using ftp through Ethernet

    Hello
    For using FTP function in LabVIEW, I recommend you to check this document: FTP Basics
    Also, take a look at FTP Browser.vi, which is available at the Example Finder.
    To edit a XML file, try to use VIs in XML palette. Maybe Write to XML.vi helps you.
    Post your current VI if possible.
    Regards
    Mondoni

Maybe you are looking for

  • Applescript to add numbers to end of folders names

    Hello, I wrote a script that can rename files and add sequential numbers to them (below): set theResult to display dialog "Please enter a name and a number separated by a space." default answer "enter image name here + space + 1" buttons {"Cancel", "

  • Template for organizational chart

    Does anyone have a readymade template for an organizational chart in any iwork program?

  • Error Importing Business Package for Projects 50.3.1

    Hey all We are trying to import and use Business Package for Project 50.3.1. Our backend system is R3 4.6C. We are getting an error while importing the package. I am pasting the dump i received. If anyone can put some light on it then please do so. C

  • CS4 Freezes importing .mp4

    I'm trying to use CS4 4.2.1 to edit some helmet camera footage, but I'm running into troubles importing. The camera saves the files as .mp4 in a variety of different HD settings (720p, 960p, 1080p, different framerates at each setting). The problem i

  • Created object appears at bottom of layer list first in CS6, I want it at the top.

    In Illustrator CS6, every time I create a shape or draw a line, it puts it in the bottom of my layers list behind everything. I didn't have this problem in Illustrator CS5. I would like to change it so every time I create an object, it goes to the to