Getting list of files from Unix directory inclding files frm sub-directries

Hi All,
        I am trying to use Fm 'SUBST_GET_FILE_LIST'  and
'RZL_READ_DIR_LOCAL' for getting a list of all files in a Unix directory including files from sub-directories.
In the first case I am getting an Exception called 'Access Error'
and when I use the 2nd FM, I am not getting any output.
Is there a special way to use these FMs.
Kindly help.
Regds,
Shweta

[url http://java.sun.com/developer/JDCTechTips/2003/tt0122.html#1]READING FILES FROM JAVA ARCHIVES (JARS)

Similar Messages

  • How to get list of file names from a directory?

    How to get list of file names from a directory?
    Please help

    In addition, this:
    String filename = files;Should be this:
    String filename = files;
    That's just because he didn't use the "code" tags, so [ i ] made everything following it become italicized.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Unix command to create a copy of file from unix directory

    Hi guys,
    what is the Unix command to create a copy of file from unix directory?
    Thanks a lot!

    If you haven't noticed, this is a ABAP forum.
    You can go to the UNIX thread instead and post it there,
    SAP on UNIX
    You can expect answers there

  • Getting list of directories within a directory - NULL

    I am getting a NULL POINTER EXCEPTION when trying to get a list of directories from a directory.
    <%
    main_dir = new File("test_dir");
    dirs = main_dir.list();
    if(dir==null){
    %>
    ERROR: dirs is null<p>
    Main Dir: <%=index_dir%>
    <% }
    %>
    It is returning that message that dirs is null.
    The directory structure is
    $TOMCAT_DIR/webapps/test_dir.jsp
    $TOMCAT_DIR/webapps/test_dir
    Within test_dir are two directories: test1, test2
    I put the same code into a regular java code:
    File f = new File ("test_dir");
    String[] dirs = f.list();
    if(dirs == null){
    System.out.println("dirs is null");
    It DOES NOT print out that message that dirs is null.
    I'm just very confused. What am I doing wrong?

    Pardon me but since I don't put the actual code on here sometiems there are typos.
    I have a program where I open a directory. It's a search page where it displays about 10 results then has a button at the bottom says "next" for the next results.
    Anyhow, one minute the webpage will be fine, open the directory with no problem. Then it will stop and say it can't open the directory when the directory is there. It's driving me nuts.
    I'm using Java code within the JSP page, instead of beans so I dont' know if that causes some kind of error.
    <%
    index_dir = new File(master_index_dir);
    indexes = index_dir.list();
    if(indexes==null){
    %>
    ERROR: indexes is null<p>
    Master Index Dir: <%=index_dir%>
    <% }
    else { 
    // Other stuff
    %>
    Well just 5 minutes ago this worked fine, the index was open and the results shown. However just 2 minutes ago it stopped and returns the message that indexes is null.
    Sometimes if I stop and start tomcat several times it starts to work again.

  • Getting list of cert from browser

    Hello,
    I would like to get the list of certificate in the different stores of my web browser (internet explorer, firefox, ...). I know how to get the list of certs from a java keystore, but I have no idea about getting list of cert from browser.
    Please help!
    Thanks

    A little tough.
    On Windows, you can use Windows-MY and Windows-Root storetypes to access those 2 stores in IE.
    For Firefox keystores, you can use the PKCS11 storetype to access the NSS keystore.
    Google yourself for details.

  • File Adapter cannot read from Unix Directory

    Hello Everyone,
    I have created a Bpel process that should read txt files from a Unix directory, but its not doing its job.
    I have tried this process on windows and it works fine.
    I got the following error from the process log in my bpel console.
    my process compiles fine but I am getting this error: The value specified for the input (Physical/Logical)Directory activation parameter has an invalid value "/temp/test"
    Also if there is something wrong with my path, please let me know.
    Thanks in advanced,
    AJ

    Hi,
    The path /temp/test might be wrong. Suppose you have installed SOA at /home/oracle/product/soa/10.1.3.1/<> , where /home is the root folder, and if you have your test folder at /home/temp/test, give the location in file adapter as /home/temp/test.
    Let me know if you still get this error.
    Thanks
    Ramana.

  • Getting list of files in root directory

    I have seen many forum talking somewhat on this subject but I always see them using c: (for windows) as the example directory. I need to write this so that I can go to a Unix directory.
    Example:
    I want to go to the root directory from where I am....I would use runtime.exec(), right? But does the runtime actually go to that directory or just run the exec?
    If there was a "name" such as c: in unix like windows it would be easier. But, I can not just say the name of the directory is / to get in there and check out the files. So, really what I want to do is if someone is not in the particular directory I want to be able to go to the root directory and check files there, then go to another directory and check the files there, etc.
    I have a hard time explaining things so hopefully someone will get me.
    Thanks.

    But the trouble I am running in to is that I want the
    root directory in Unix, which would be /. I can not
    not just put that as the directory, can i?You can if you spell it out:
    /export/home/thefunnyrootename
    ... or use:
    String sysprop = System.getProperty("whatever property");
    File f = new File(sysprop);... To determine which you want, SDK v1.3.1 docs for System.getProperty():
    getProperties
    public static Properties getProperties()
        Determines the current system properties.
        First, if there is a security manager, its checkPropertiesAccess
    method is called with no arguments. This may result in a security
    exception.
        The current set of system properties for use by the
    getProperty(String) method is returned as a Properties object.
    If there is no current set of system properties, a set of system
    properties is first created and initialized. This set of system
    properties always includes values for the following keys:
        Key Description of Associated Value
        java.version Java Runtime Environment version
        java.vendor Java Runtime Environment vendor
        java.vendor.url Java vendor URL
        java.home Java installation directory
        java.vm.specification.version Java Virtual Machine specification version
        java.vm.specification.vendor Java Virtual Machine specification vendor
        java.vm.specification.name Java Virtual Machine specification name
        java.vm.version Java Virtual Machine implementation version
        java.vm.vendor Java Virtual Machine implementation vendor
        java.vm.name Java Virtual Machine implementation name
        java.specification.version Java Runtime Environment specification version
        java.specification.vendor Java Runtime Environment specification vendor
        java.specification.name Java Runtime Environment specification name
        java.class.version Java class format version number
        java.class.path Java class path
        java.ext.dirs Path of extension directory or directories
        os.name Operating system name
        os.arch Operating system architecture
        os.version Operating system version
        file.separator File separator ("/" on UNIX)
        path.separator Path separator (":" on UNIX)
        line.separator Line separator ("\n" on UNIX)
        user.name User's account name
        user.home User's home directory
        user.dir User's current working directory
    Note that even if the security manager does not permit the getProperties
    operation, it may choose to permit the getProperty(String) operation.
    Returns:
    the system propertiesThrows:
    SecurityException - if a security manager exists and its
    checkPropertiesAccess method doesn't allow access to the system
    properties.See Also:
    setProperties(java.util.Properties), SecurityException,
    SecurityManager.checkPropertiesAccess(), Properties~Bill

  • Sample code to read a text file from UNIX directory.

    I am using 9i Developer Suite, application server is 9.0.4. I want some help on how to read a flat file from UNIX environment. A sample code could be very helpful.
    In windows, i use this kind of code:-
    I declare an object & then write to a file using these sample staements:-
    file_handle text_io.file_type;
    filename := 'd:\ran\egs\uninvoiced.txt';
    file_handle:=text_io.fopen(filename,'w');
    text_io.put_line(file_handle, 'MOBILE NO '||'COUPON NO ' || 'DATE');
    I hope, my question is clear. Please help in solving the doubt.
    Regards.

    filename := 'd:\ran\egs\uninvoiced.txt';This is a Windows directory, so it won't work on Unix.
    For the rest of the code: see examples in the Forms Builder Online Help.

  • Getting List of files of .wmv extension from a library \ folder in sharepoint 2013

    I need to get all the files from a particular folder in sharepoint library.
    I am using RESTAPI Javascript code as below : 
      var call = jQuery.ajax({
                    url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/GetFolderByServerRelativeUrl('" + folderName + "')/Files",
                    type: "GET",
                    dataType: "json",
                    headers: {
                        Accept: "application/json;odata=verbose"
    This code retrieves all the files in a particular folder, except files with extension of .wmv.
    The count of files retrieved also doesnt include .wmv files.
    Can anyone tell me why this is happening.
    Thanks

    Hi,
    As this is not an expected outcome when requesting files of a library, a suggestion is that please create a new library and upload one sample .wmv file to it and send the request
    again to see if it is an issue of Document Library.
    Feel free to reply with the test result if the issue still exists or there any progress.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they
    help and unmark them if they provide no help. If you have feedback for TechNet
    Subscriber Support, contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Get list of files in a directory

    Hello everybody,
    working with Oracle 9.2 I have created a directory and i would like to implement in pl/sql a procedure that return the list of files contained.
    Anybody know the general solution for this matter?
    Thanks in advance

    Tom Kyte has an example:
    Directory List including modify date and times

  • Getting List of Files in OWB

    Hi people,
    Where can I get the list of file objects created under a location in Design Center (OWB)?
    I can get the list of other objects like external tables, tables, cubes, mappings, etc by connecting as repo owner and running:
    select * from wb_rt_warehouse_objects
    I will appreciate your help
    Thanx guys.
    PS: Pray for Haiti

    Check the public design environment views in the API & Scripting Reference. If I recall correctly, there is one called ALL_IV_FILES whcih should give you the details that you need.
    Cheers,
    Mike

  • How is it possible to get list of VIs from executable?

    Hi!
    Simple question.
    I have executable (builded with LabVIEW, of course).
    In LabVIEW 8.0.1 - based application I able to get list of VI inside of executable (with ..\LabVIEW 8.x\vi.lib\Utility\libraryn.llb\Get VI Library.vi)
    But if application was builded with LabVIEW 8.2 it seems to be impossible, because error 13 occurred (file is not a resource file).
    How is it possible to get list of all VIs from executable which was generated with LabVIEW 8.2?
    I do not prefer to build application with llb.
    Theoretically I can "convert" exe to llb, and then get list of VIs, but this is "undocumented" way and not preferred.
    Any other (better) ideas how to do this?
    best regards,
    Andrey.

    Hi Andrey;
    Just happened to be browsing for a different problem, but an alternative method (assuming I understood the question correctly) may be to use the "List Folder" vi to create a list of all VIs contained within your .exe application.  From this list, you could further use a "Match Pattern" vi to do further sorting.
    For example, if any constructed VIs contained the phrase "SubVI" within the file name, use "Current VI Path" followed by a single "Strip Path" (to eliminate the active VI name), use a "List Folder" to extract the vi names contained within the .exe, and match pattern for something like "*SubVI.vi" to get a listing of all VIs with the phrase "SubVI.vi" in the file name.
    Hope it helps.
    DJH

  • How to I get list of Users from LDAP in a Task?

    Hi,
    Can any one tell me that how can I communicate with a LDAP Resource and get all the users from the LDAP as a list in an activity in the task?
    Can anyone tell me how can I do this?

    The "Stick Slidelet" option has been unchecked all the time, but the "X" button stayed.
    Meanwhile, on saving Captivate asked me for the umpteenth time if I wanted to convert my project from Captivate 7 to 8. It seems like I originally had a version 7 trial installed, but my licensed copy clearly states that it is version 8 now, and I have answered this dialog with "please convert" in this project every time before.
    Anyway. Now my original slidelets still have the unwanted "X" button. But when I create a new slidelet from scratch, it does not have the button anymore.

  • Func/BAPY to get list of objects from Material class

    Hi guys,
    I am looking for BAPI/FUNC to get list of material/objects if I know Class and Class type. In MM02 I am doing following: In selection of input I choose Materilas of Class there I write Class and Class type, and then there is icon FIND IN INITIAL CLASS after clicking that icon I get list of materials for entered class.
    Can you advise me which BAPI/Func do that or in which tables I can find this DATA.
    Thanks very much for any help.
    Zbynek

    Zbynek,
    Try using this BAPI....<b>BAPI_CLASS_SELECT_OBJECTS</b>
    Actually you can do this by directly going to tables....
    First using the class type and class number, go to KLAH tables... get the Int class no. (KLAH-CLINT). Using this go to KSSK table and use the KLAH-CLINT value in KSSK-CLINT and adda another condition like KSSK-MAFID = 'O'.
    Hope this helps...
    Please provide reward points if you find this reply helpful.
    Balaji

  • To Get List of Tables from Database which has the data 'AAAA' - T-SQL Query

    Hi,
    I have a database "Adventureworks", I need to get list of tables, which has the data 'AAAA' in their rows.
    Is there any optimised or simple way to do this task?
    Any T-SQL Query Available
    --- Thanks in advance..

    You can refer the same below URL provided by Praveen:
    https://gallery.technet.microsoft.com/scriptcenter/c0c57332-8624-48c0-b4c3-5b31fe641c58
    It has the SQL SP - "SP_SearchTables". You can pass parameters the way you want and get the expected output.
    -- Search for 'bike' instead of 'AAAA'
    Use AdventureWorks2012
    EXEC SP_SearchTables @Tablenames = '%', @SearchStr = '%bike%'
    -Vaibhav Chaudhari

Maybe you are looking for

  • On some pages,the things are shriking or are coming up really big do you know how to get them back to the normal size?

    on some pages,the things are shrikingg and becoming big,i just want them back to the normal size,i dont know how do that,could anyone help? thank you...

  • Export project in MOV H264 AC3

    Hi ... one question ... is possible export one project video in a file MOV h264 but with AC3 at 6 channel and not AAC at 6 channel? because home theater not support AAC but only AC3

  • Text Scam? Lost/Recover Iphone

    Hello! My wife lost/Stolen her iPhone 5s in Las Vegas abour 2 weeks ago. Today I recieved a text from 213-712-8384 in the text content it stated. (Apple Device Recovery Priotity Code LV3-R3 please verify below validation.byethost7.com) (01/02 this is

  • How long to rebuild Exchange 2010 index?

    Exchange 2010 sp3 so my index was disabled for some weeks due to low disk space. last night I extended the database drive partition to an additional 250GB, reenabled the index service, re-enabled the databases index too. since last night, the databas

  • New mail events don't update iCal

    When I receive via mac mail an iCal event update, to schedule a new or change an existing event, clicking the event opens iCal but the event is not shown or changes are not applied. This started with the MobileMe changes in Snow Leopard and I was hop