Listing directory (list directory.vi) performance

I have a problem when using list directory.vi module to get list of files over the network. Directory contains shortcuts in to destination workstation's hard disk. Directory listing takes about 30 seconds to go and there are no other files, only those few shortcuts. When polling directory where there are no shortcuts, it works fine.
I need to poll these directories because we are checking incoming new files.
There is no difference in processing time when using pattern.
Any ideas are welcome.

Hi Hannu,
The List Directory VI is slow primarily because it tries to resolve any shortcuts in the directory and make sure that they are valid. If there are several shortcuts, this operation will definitely take some time, especially if some of the shortcuts are broken. This issue has been documented and NI's R&D department is aware of the problem.
The List Directory VI does have better performance in LabVIEW 7.1 as well as on a computer using a NTFS file system format.
The previous post by Audrey Dmitriev suggests making calls to the Windows API functions. This is another workaround and you can use the LabVIEW Call Library Node VI to call a Windows DLL. The following article may be helpful for you:
KnowledgeBase 1GRAN2U0. Where Can I Get Help Calling Windows API Functions from LabVIEW?
Note that there is an excellent Developer Zone example program that is linked off that page as well.
Good luck!
Kileen C.
Applications Engineer
National Instruments

Similar Messages

  • Cannot "enable directory listing" from the wadm CLI

    With SJSWS 6.1 sp1 up to sp11, there was a documented bug that caused directory listing to work even though the ACL was:
    acl "default";
    authenticate (user, group) {
      prompt = "Sun ONE Web Server";
    allow (read, execute, info) user = "anyone";
    allow (list, write, delete) user = "all";With SJSWS 7.0, this bug was fixed. The default installed ACL is exactly the same from 6.1 to 7.0. e.g. the "list" right is given only to [all] authenticated user, and not everyone. So requesting a "GET /images/" will give you a 401 unauthorized, as should have happened in 6.1, which causes your browser to prompt you to login.
    By default, 7.0 webserver configs are created with directory listing enabled with "index-common". But it can also be disabled, directing the user to a defined static file on the web server disk. i.e.:
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="send-error" path="/path/on/disk/notFound.html"In either case, out of the box, neither enabling nor disabling directory listing matters because the default ACL denies directory listing in the prior case, and denies the "notFound.html" response in the later. Note "allow (list) user = all" requires authentication for the "list"privilege.
    To fix this, you change the ACL so the "list" privilege is in the first ACI, i.e., 'allow (read, execute, info, list) user = "anyone";'
    The problem is that even though the ACL file can be modified in the Admin Web GUI, it cannot be modified from the the wadm CLI.
    So, because of this, technically one cannot truly enable directory listing (wadm enable-directory-listing) using wadm. The best you can do is manually edit the existing ACL, or create a new ACL file and set that new file using wadm.
    I don't even see a way, using wadm, to dump new content into the ACL file. Without the GUI, you are stuck. And you cannot perform remote administration for this feature using wadm.
    If we admins are creating TCL scripts to automate creating and configuring webserver configs, this feature cannot be configured.
    I would like to know if I am wrong, and how I could resolve this using the wadm CLI alone.
    And if the default is going to remain that the "list" privilege requires authentication, this should be documented in the SJSWS7 documentation for enabling and disabling directory listing.

    pull-config does not work in this case because of two reasons:
    1. you must still manually edit the ACL file (can already do that on the admin server)
    2. and you must make that change on a node which has the configuration
    In my case, I want to remotely manage the configuration using wadm. But I do not want to log into one of the nodes in the server farm.
    And I want to avoid having to edit the ACL file manually if possible, or through the GUI which requires manual intelligent point-and-click efforts.
    Seems like my only bet is to:
    1. create the config via the wadm tcl shell
    2. then outside of the wadm command, execute some script that can perform a scp to the admin server, or a ssh for a local copy of a previously written ACL file - which requires a lot of extra setup to make that happen.
    3. then get back into wadm to execute the other tasks
    I want to avoid step #2.

  • Directory Listing Using Weblogic Server

    Hi all,
    I need to be able to browse few directories via web page using Weblogic as WebServer ( on Linux RedHat 5.0)
    for example the directory to be browsed are:
    /home/oracle/swift
    /home/oracle/payables
    Please let me know how I can achieve this !!
    Thanks
    KS

    maybe it's a bit overkill to use the JCA File Adapter
    http://docs.oracle.com/cd/E21764_01/integration.1111/e10231/adptr_file.htm#BABFGIEJ
    which has a "directory listing" feature
    but I think it's not very recommended to use directly the java.io.File class to perform this operation...
    any other thoughts?

  • Overriding Tomcat's directory listing

    I made my own directory listing JSP which includes thumbnails of pictures. Right now I have to copy the file, index.jsp, into every directory to make it the directory listing. How can I stop this?

    It doesn't seem to be working, but I suspect it is a newbie error on my part. Here' s my server.xml (I tried it as shown below, in my apps-project.xml file, and outside the <server> key:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Server>
        <!-- You can add a "home" attribute to represent the "base" for
             all relative paths. If none is set, the TOMCAT_HOME property
             will be used, and if not set "." will be used.
             webapps/, work/ and log/ will be relative to this ( unless
             set explicitely to absolute paths ).
          -->
        <ContextManager workDir="work" >
    <StaticInterceptor listing="false" />
          <!-- ==================== Global modules ==================== -->
            <LoaderInterceptor11  useApplicationLoader="true" />
            <TrustedLoader />
            <LogSetter name="tc_log" timestamps="true"
                 verbosityLevel="INFORMATION"  />
            <LogEvents enabled="false" />
            <!-- Backward compat: read the Context declarations from server.xml-->
            <ContextXmlReader config="conf/server.xml" />
            <!-- Separated Context -->
            <ContextXmlReader config="conf/apps.xml" />
            <AutoDeploy source="modules" target="modules"
                  redeploy="true" />
            <AutoWebApp dir="modules" host="DEFAULT" trusted="true"/>
            <AutoDeploy source="webapps" target="webapps" />
            <AutoWebApp dir="webapps" host="DEFAULT" />
            <PolicyLoader securityManagerClass="java.lang.SecurityManager"
                    policyFile="conf/tomcat.policy" />
            <SimpleMapper1 />
            <SessionExpirer checkInterval="60" />
            <!-- For development you can use randomClass="java.util.Random" -->
            <SessionIdGenerator randomClass="java.security.SecureRandom"
                                randomFile="/dev/urandom" />
            <!-- ========== context processing modules ========== -->
            <!-- This will be the "default" profile
                 ( all except the "global" modules can be set per context )
              -->
            <LogSetter name="servlet_log"
                 timestamps="true"
                 verbosityLevel = "INFORMATION"
                 path="logs/servlet-${yyyyMMdd}.log"
                 />
            <LogSetter  name="JASPER_LOG"
                 timestamps="true"
                 path="logs/jasper-${yyyyMMdd}.log"
                 verbosityLevel = "INFORMATION"  />
            <WebXmlReader validate="true" />
            <ErrorHandler showDebugInfo="true" />
            <WorkDirSetup cleanWorkDir="false" />
            <Jdk12Interceptor />
            <!-- Non-standard invoker, for backward compat. ( /servlet/* ) -->
            <InvokerInterceptor />
            <!-- you can add javaCompiler="jikes" -->
            <JspInterceptor keepGenerated="true"
                   largeFile="false"
                   useJspServlet="false"
                   />
            <StaticInterceptor listings="true" />
            <ReloadInterceptor fullReload="true" />
            <SimpleSessionStore maxActiveSessions="-1" />
            <AccessInterceptor />
            <CredentialsInterceptor />
            <SimpleRealm  filename="conf/users/global-users.xml" />
           <!-- UnComment the following and comment out the
                above to get a JDBC realm.
                Other options for driverName:
                  driverName="oracle.jdbc.driver.OracleDriver"
                  connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
                  connectionName="scott"
                  connectionPassword="tiger"
                  driverName="org.gjt.mm.mysql.Driver"
                  connectionURL="jdbc:mysql://localhost/authority"
                  connectionName="test"
                  connectionPassword="test"
                "connectionName" and "connectionPassword" are optional.
            -->
            <!--
            <JDBCRealm
                debug="99"
             driverName="sun.jdbc.odbc.JdbcOdbcDriver"
             connectionURL="jdbc:odbc:TOMCAT"
             userTable="users"
                userNameCol="user_name"
                userCredCol="user_pass"
             userRoleTable="user_roles"
                roleNameCol="role_name" />
            -->
            <LoadOnStartupInterceptor />
            <Servlet22Interceptor />
            <!-- Tag pooling support.
                 To enable the reuse of tag handlers as described in
                 the JSP spec, uncomment the following.  If your pages
                 use a lot of custom tags, you should see a nice performance
                 gain.
                 Note that placing the interceptor here will enable
                 Tag pooling for all of the web applicatitions loaded -
                 this may be a bad thing if all tags are not coded to
                 handle reuse. To enable pooling only for specific web
                 applications i.e. Contexts, place the interceptor inside of
                 the Context's definition.
                 To view information about tag usage uncomment the tag
                 LogSetter. Set verbosityLevel to DEBUG to see everytime
                 a tag is obtained and released.
            -->
            <!--
            <LogSetter  name="tag_pool_log" timestamps="true"
                path="logs/tagpool-${yyyyMMdd}.log"
                verbosityLevel="INFORMATION" />
            <TagPoolManagerInterceptor />
            -->
            <!-- Request processing -->
            <DecodeInterceptor />
            <SessionId cookiesFirst="true" noCookies="false" />
            <!-- Automatic config generation
                 Set noRoot="false" if you wish to have Tomcat try to take
                   control of the external web server's root context.
                   Additonal configuration of the external web server may be
                   required for this to be successful.
                 Note: Configuration files are not written as part of the
                   default startup behvior.  Append "jkconf" to the startup
                   command to have Tomcat initialize, write the config files,
                   then exit. This may be done while Tomcat is running.
              -->
            <ApacheConfig noRoot="true" />
            <IISConfig noRoot="true" />
            <NSConfig noRoot="true" />
             <!-- Uncoment for apache-style logs
                  Attributes: logFile, flush, format
            <AccessLogInterceptor/>
              -->
          <!-- ==================== Connectors ==================== -->
           <!-- new http adapter. Attributes:
                   secure - use SSL ( https )
                   keystore, keypass - certs for SSL
                   port
                   reportedname - Server name to send back to browser
                                  by default report Tomcat Web Server ...
                                  set an empty string to avoid sending server header
            -->
            <Http10Connector   port="8080"
                      secure="false"
                      maxThreads="100"
                      maxSpareThreads="50"
                      minSpareThreads="10" />
            <!--
                Uncomment this for SSL support. You _need_ to set up a
                server certificate if you want this to work, and you
                need JSSE. See tomcat-ssl-howto.html for more detailed
                instructions.
                1. Make the JSSE jars available to Tomcat, either by making
                   them an installed extension or by adding them to the
                   Tomcat CLASSPATH.
                2. Do: keytool -genkey -alias tomcat -keyalg RSA
                   RSA is essential to work with Netscape and IIS.
                   Use "changeit" as password. ( or add keypass attribute )
                   You don't need to sign the certificate.
             -->
            <!--
            <Http10Connector  port="8443" secure="true" />
            -->
            <!--
                 JNI connector. It assumes the library is located in
                 TOMCAT_HOME/bin/native/jni_connect.[dll, nlm, so]. or in LD_LIBRARY_PATH.
                 For different paths set "nativeLibrary" parameter.
                 The JniConnector will be self-enable only if JNI mode is detected.
             -->
            <JniConnector />
            <!-- Apache AJP12 support. This is also used to shut down tomcat.
                 Parameter "address" defines network interface this Interceptor
                 "binds" to. Add it if you want to "bind" to just "127.0.0.1".
                 address="127.0.0.1"
                 Parameter "tomcatAuthentication", controls if Tomcat honors
                 ( and uses ) auth done in HTTP Server or not, when true Tomcat does
                 not use in any way auth information provided by the HTTP Server.
                 true is the default.
                 tomcatAuthentication="false"
              -->
            <Ajp12Connector      port="8007" />
            <!-- Apache AJP13 support (mod_jk)
                 Parameter "address" defines network interface this Interceptor
                 "binds" to. Add it if you want to "bind" to just "127.0.0.1".
                 address="127.0.0.1"
                 Parameter "tomcatAuthentication", controls if Tomcat honors
                 ( and uses ) auth done in HTTP Server or not, when true Tomcat does
                 not use in any way auth information provided by the HTTP Server.
                 true is the default.
                 tomcatAuthentication="false"
              -->
            <Ajp13Connector port="8009" />
          <!--
               Context definitions can be placed here ( not recommended ) or
               in separate files. The ContextXmlReader will read all context
               definitions ( you can customize the "base" filename ).
               The default is conf/apps-[name].xml.
               See conf/apps-examples.xml and conf/apps-admin.xml 
           -->
        </ContextManager>
    </Server>

  • How to parse directory listing

    hey guys
    id like to create fully directory listing of my usb-hdd and parse this listing directly into a textfile
    i know this should be done with terminal but i dont know how and google just showed some weird results to terminal usage in general, like how to make a directory or how to change the directory
    thanks in advance

    okay i actually figured out how to do that thingy and it gives me an input/output error with two files
    but these two files on the hdd which just wont let themselves be deleted with rm "bla bla" terminal gives me a input/output error and manually deleting is no option either
    oh and cmd under windows tells me to perform chkdsk on my hdd because of these two files
    what is this?

  • Remote  System Directory Listing/Navigation in JTree

    Hi
    I want my Remote System(Linux) directory listing to be available in a JTree. I need some help on implementing the same. Also How do i constantly get the directory structure of the remote system.
    Thanks in Advance

    http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html
    http://en.wikipedia.org/wiki/Model-view-controller
    How you get the data depends on how you access the server. Maybe FTP.

  • Very slow network directory listing - but fast data transfer speed once listed?

    Hello,
    I have really tried to sort this myself before opening up to the community, however I have run out of ideas, and hope someone can offer the magic solution I have missed.
    I am currently using the 3.4ghz i7 iMac on a 1GB LAN, running OSX10.7.2 - connecting to a Windows Server 2008 (Running Release 2) over ethernet.
    If i go to a network directory that i haven't recently accessed it can take up to 60 seconds to show the contents of that directory. Once i have accessed that folder, if i come out of it and go back in it will be instant again - but the first time it lists the directory it looks like i have opened an empty folder - which after anything from 10seconds to 1 minute will suddenly show the files that are there.
    Internet connectivity is fast through the network, and file transfers across the LAN are fast. (showing as approx 300mb per second) I can play and edit HD content across the network with no slowdown so I am confident that this issue is not related to the network speed itself, and is more to do with a setting on this mac.
    Symptoms are very similar to this post: https://discussions.apple.com/message/12245148?messageID=12245148&amp%3b#1224514 8 - however i understand that in OSX Lion - SMB was removed - so i cannot find this file to edit.
    I have tried bypassing additional hubs in the network by wiring direct cables to the switch that is connected to the file server, this made no difference.
    I have also tried disconnecting the ethernet cable, and running over wifi. This fixes the listing problem, but when editing HD content over a network drive, this connection is not fast enough to carry the data without interruption (some projects are linked to up to 900gb of hd video content!)
    Using ethernet, I have tried DHCP, DHCP with manual address, and manual mode. All reproduce this problem. i have tried using the windows workgroup, and tried without it.
    I have also followed this suggestion: https://discussions.apple.com/thread/2134936?threadID=2134936&tstart=45 and used OpenDNS. this did not fix the issue.
    For argument sake, I have also just tested a Macbook Pro running Snow Leopard to see if it was OS related. This reproduces the exact same problem, near instant directory listing on the wifi, a long and arduous wait on ethernet.
    I cannot work out why directory listing is instant over wifi, but not over ethernet on 2 different macs, running 2 different versions of OSX. I also do not understand why if the network is having trouble listing the directories - the data transfer speed is 300mbps when i copy files across the wired network from the file server to the mac.
    Does anyone have any other ideas as to what could be the problem here? We are about to start work on a very large project, where the content we are editing is spread out across around 200 different network folders (different shoots captured over the past 2 years). We really don't have the time to wait 60 seconds each time we need to access one of those directories to look for a file, and I am very close to pulling all my hair out!
    I really look forward to hearing from anyone who can offer any insight.

    If you are suspecting that the Windows update had something to do with your LAN going slow, then try the following:
    1.  Look for updates for your clients LAN NIC driver; or
    2.  Un-install the updates.

  • Get file list in a directory

    Hi,
    How can i get the files liste in a directory from forms ? I want to know all the files in c:\my_dir\
    Thanx
    Herome

    Thanks but my form must run on different environement and dir will not return the same output to my_file.txt ! Is there any other "cleaner" way to do the job ?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Dino ([email protected]):
    U can use Host command. I.e.
    Host ('dir c:\my_dir > my_file.txt');
    and then u can read this ascii file.
    Hope this helps.
    Bye Dino<HR></BLOCKQUOTE>
    null

  • Directory listing : Codepage problem ???

    Hi there,
    i want to fetch a list of files from a specific directory (the directory would be in the application server and not in the presentation server) during a background execution of a report.
    I have tried the function modules 'SUBST_GET_FILE_LIST' and 'EPS_GET_DIRECTORY_LISTING'.
    The problem is that the list of files comes with unknown characters when there is a file name with Greek characters.
    Is this an application server setup problem or there is a possibility to get a correct file list through another function module?
    Thanks in advance.
    Kostas

    There was a misconfiguration on the server side. Consider this question as answered.
    Kostas

  • List files in directory?

    Hey there. I'm brand new to this JSP stuff. I'm developing a solution whereby a customer logs into a page, the page looks into a directory for invoices associated with that customer (this will be accomplished through naming conventions) and then gives the customer a dropdown with their invoices in it. I wanted to start with the simplest part of the code and work forward with the conditions etc. So what I want to do first is just get the page to list all the files in the invoices directory. Can anyone help me with that?
    Thanks!

    Q&D, should list the current directory contents.
    I want to do first is just get the page to list all
    the files in the invoices directory. Can anyone helpimport javax.swing.*;
    import java.util.*;
    import java.io.*;
    import java.io.OutputStream.*;
    import java.io.InputStream.*;
    import java.util.zip.*;
    import java.text.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.Date;
    import javax.swing.table.*;
    import java.net.URL;
    import java.sql.*;
    import java.net.*;
    public class Servlet extends HttpServlet {
    public final static String IPAddress = "127.0.0.1";
    public final static String IPAddressKey = "ipaddress";
    public Servlet()
    public void init(ServletConfig conf) throws ServletException {
         super.init(conf);
    public void doPost (HttpServletRequest req, HttpServletResponse res)
         throws ServletException, IOException {
         HttpSession session = req.getSession( true );
         String sessionID = session.getId();
         session.putValue( "sessionID", sessionID );
         session.putValue( IPAddressKey, IPAddress );
         ServletContext sc = null;
         RequestDispatcher rd = null;
         String url = "/Dir.jsp";
         sc = getServletContext();
         rd = sc.getRequestDispatcher( url );
         System.out.println( "S url forward " + url );
         rd.forward( req, res );
    <html>
    <%@ page session="false" language="java" import="java.io.*" %>
    <body bgcolor="white">
    <font size=4>
    <%
         try {
         File f = new File( "." );
         File[] fs = f.listFiles();
         for( int i = 0, ii = fs.length; i < ii; i++ )
              %>
    <%= fs[ i ] %><br>
    <%
         } catch (Exception e) {
         System.err.println(e);
    %>
    </font>
    </body>
    </html>

  • How to apply style sheet (.css) in Weblogic directory listing

    Hi,
    We are migrating a directory listing application from Apache to Weblogic.
    Earlier we did this by Apache httpd.conf entry like below :
    <Directory "/opt/apache/httpd-2.1.9/htdocs/Myreportfolder">
    IndexOptions FancyIndexing FoldersFirst NameWidth=* XHTML
    IndexOrderDefault Descending Date
    IndexStyleSheet "/css/style.css"
    </Directory>
    /opt/apache/httpd-2.1.9/htdocs folder has all it's usual resource files.
    We were able to see documents in "Myreportfolder".
    Now we have moved to Weblogic and using virtual directory mapping as below and we are trying to achieve the same thing:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <wls:weblogic-web-app xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
    - <wls:container-descriptor>
    <wls:index-directory-enabled>true</wls:index-directory-enabled>
    <wls:index-directory-sort-by>LAST_MODIFIED</wls:index-directory-sort-by>
    </wls:container-descriptor>
    - <wls:virtual-directory-mapping>
    <wls:local-path>/Myreportfolder</wls:local-path>
    <wls:url-pattern>/*</wls:url-pattern>
    </wls:virtual-directory-mapping>
    <wls:context-root>/getreports</wls:context-root>
    </wls:weblogic-web-app>
    We are able to view the reports but we do not get look-and-feel of Apache like directory listing.
    but we encounter below issues:
    1) File/Folder icons are not visible - we want to use style sheets in http header from the response that is returned from weblogic server
    2) Filename is limited to 29 characters when it is showing
    3) Files are not sortable as Descending order - we sorted using tag <wls:index-directory-sort-by>LAST_MODIFIED</wls:index-directory-sort-by> but the latest file is shown at the last
    We are thinking that Weblogic must be having some configuration like Apache httpd.conf where we can apply style sheets (css ).
    We would appreciate af anyone can provide better insight into the issue.
    or is it possible to extend weblogic.servlet.fileservlet class to serve this purpose.
    Thanks & regards,
    Rabi

    Hi Vikash,
    Check the below links which will you idea on the same.
    Stylesheet for WDA without integrating in SAP Portal
    Apply custom css to WebDynpro application
    Thanks
    KH

  • Front end directory listing

    Question:
    Trying to create a page that displays a directory list of a folder content.
    Don't want to use the literature module...
    Would like to create a folder where I easily can upload files (ftp) and create a menu link that displays the folder content as a list using my master template and css ...
    The files in the list should be available for download.
    Any suggestions on how to achieve this?
    Answer:
    This is not possible on BC. You can display a folder view and links to all the content in it. You'll have to upload your items and create a page with links to those items.

    That's a server message. Means what it says.

  • How do I populate an array with a directory listing.

    I have a web site that has its photos updated by another person using a content management system that I have written. As Dreamweaver does not know about these extra photos, if I try to
    syncronise the site on my machine for backup purposes, Dreamweaver downloads all 5000+ photos, and this can take upwards of 12 hours if there are no breaks in the connection.
    So I am trying to write a page that creates an array of the existing files on the remote site. It will then do the same on my local site, and by comparing the arrays, will make a list of the new files, and then download these, which will save a lot of time and bandwith charges.
    First I have to read the directory list, using the code below which reads and echos it on screen.
    However, I cannot work out how to populate the required array.
    <?php
        try
        {          /***photo directory ***/
            $it = new directoryIterator('../web/thumbs');
            while( $it->valid())
                  /*** echo if not a dot directory ***/
                if( !$it->isDot() )
    /**** Array creation code needs to go here I think.***/
    echo $it->current()."<br />";
         /*** move to the next element ***/
                      $it->next();
        catch(Exception $e)
            /*** echo the error message ***/
            echo $e->getMessage();
    ?>
    This creates a list of files and displays it on the page.
    How do I store it in an array?
    Howard Walker

    Although not the solution you were looking for, consider the following:
    Click the icon in DW for "Expand to show local and remote sites."  Arrange the remote image directory by "Modified date," Then select all the recent images and GET them.
    I find the above method good enough for occassional synchronization. I also simply ignore broken image links on the testing system.
    If the above is not a solid enough solution, perhaps someone else will write your array function for you. I don't have the time.

  • How to get a directory listing in XE?

    So how would you best get a directory listing?
    There was a lovely thread about using dbms_scheduler to make external calls:
    Re: External procedure calls supported?
    Which discussed how to run an external prcoedure. So using that technique would an approach be:
    create procedure get_dir(p_dir varchar2)
    --get sequence for directory call
    --call 'synronous dbms_scheduler that executes "ls -l > /tmp/listing[sequence]
    --create external table temp_dir_[sequence]
    --load it into a global temp table ala ASKTOM http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584
    --drop the external table
    Someone on Asktom said they were going to do it via dbms_pipe but was not forthcoming with an example.
    I'm not sure I like creating and dropping an external table every time this procedure is called and I feel I am missing a technique (or a good idea) to make this work effectively.
    Kind Regards,
    James
    Got the link to the 'External procedure calls support' wrong.
    Message was edited by: jcrockart

    Ok.
    Well here is the solution... Can I make it better?
    FROM OS (oracle user):
    vi ~/get_dir.sh
    #!/bin/sh
    ls $1 > /tmp/$2
    exit 0
    ##end
    FROM SYS:
    create directory OS_TMP as '/tmp';
    grant read,write on directory OS_TMP to hr;
    grant create table to hr;
    FROM HR:
    create global temporary table DIR_LIST
    ( filename varchar2(255) )
    on commit delete rows
    --create the following:
    CREATE OR REPLACE procedure get_dir_list (
    p_directory     in varchar2
    IS
    l_jobname VARCHAR2 (100);
    BEGIN
         l_jobname := DBMS_SCHEDULER.generate_job_name (prefix => 'get_dir_list');
         dbms_output.put_line(l_jobname);
         --dbms_output.put_line('ls '||p_directory||' > /tmp/blah');
         --creat syncrhous job
         DBMS_SCHEDULER.create_job (
              job_name => l_jobname,
              job_type => 'EXECUTABLE',
              job_action => '/home/oracle/get_dir.sh',
              number_of_arguments => 2,
              enabled => FALSE,
              comments => 'directory listing for '||p_directory);
         DBMS_SCHEDULER.set_job_argument_value (l_jobname, 1, p_directory);
         DBMS_SCHEDULER.set_job_argument_value (l_jobname, 2, l_jobname);
         -- Run job synchronously.
         DBMS_SCHEDULER.run_job (job_name => l_jobname, use_current_session => TRUE);
         -- Remove job after run
         DBMS_SCHEDULER.drop_job (l_jobname);
         --create external table
         execute immediate '
              create table '||l_jobname||'_ext
              file_name               varchar2(1000)
              organization external (
              type          oracle_loader
              default     directory os_tmp
              access parameters (
                   records delimited by newline
                   fields terminated by '',''
                   missing field values are null
                   file_name)
              location ('''||l_jobname||''')
              reject limit unlimited';
              execute immediate '
              INSERT INTO DIR_LIST(FILENAME) select file_name from '||l_jobname||'_ext
    END;
    --test it
    exec get_dir_list('/home/oracle')
    GET_DIR_LIST14
    PL/SQL procedure successfully completed.
    hr>select * from dir_list;
    FILENAME
    apex
    apex_3.0.1.zip
    get_dir.sh
    go.log
    go.txt
    test.sh
    6 rows selected.
    hr>
    Apologies for butchering Dietmar Aust dbms_schedule example.
    I can't drop the external table as the data in the global temporary table will be lost, so I will have to periodically clean up after this procedure.
    Please somebody feel free to give me the one line solution ;-)
    Regards,
    James

  • Directory listing of a Multi volume encrypted tapes on OpenVMS 8.3

    I have a full data backup for an openvms 8.3 server integrity server on two tapes that are encrypted.  If I mount the first volume and try to do a directory listing the process goes on indefinately; without giving any output and eventually I have to kill the process. e.g. DEV_DAISY> sh dev mk Device                  Device           Error    Volume         Free  Trans MntName                   Status           Count     Label         Space Count CntPLUTO$MKC200:           Online               0 DEV_DAISY> mount PLUTO$MKC200: dat801%MOUNT-I-MOUNTED, DAT801 mounted on _PLUTO$MKC200: DEV_DAISY> dir PLUTO$MKC200:[000000] The process goes on indefinately at this point of time. However If I mount the second volume and do a directory listing, It executes and gives me the required output as : Directory PLUTO$MKC200:[]DAT801.BCK;1 294976 31-MAR-2015 00:00:00.00Total of 1 file, 294976 blocks. I want to ask is it possible to do a directory listing on first volume. If not is it possible to read tape header information (i.e saveset name and date on which backup was taken) from the first volume without specifying the encryption key.

    I have a full data backup for an openvms 8.3 server integrity server on two tapes that are encrypted.  If I mount the first volume and try to do a directory listing the process goes on indefinately; without giving any output and eventually I have to kill the process. e.g. DEV_DAISY> sh dev mk Device                  Device           Error    Volume         Free  Trans MntName                   Status           Count     Label         Space Count CntPLUTO$MKC200:           Online               0 DEV_DAISY> mount PLUTO$MKC200: dat801%MOUNT-I-MOUNTED, DAT801 mounted on _PLUTO$MKC200: DEV_DAISY> dir PLUTO$MKC200:[000000] The process goes on indefinately at this point of time. However If I mount the second volume and do a directory listing, It executes and gives me the required output as : Directory PLUTO$MKC200:[]DAT801.BCK;1 294976 31-MAR-2015 00:00:00.00Total of 1 file, 294976 blocks. I want to ask is it possible to do a directory listing on first volume. If not is it possible to read tape header information (i.e saveset name and date on which backup was taken) from the first volume without specifying the encryption key.

Maybe you are looking for

  • Media Encoder CC won't launch

    I've been succesfully working with media encoder for sometime now but it won't start for some reason. Using Mac OS 10.6.8, icore 7 proc, 16gb RAM, Encoder CC 6.0.2 what's causing this?

  • Opinion of Areca ARC-1110 RAID Controller?

    I'm planning on adding a RAID set to my computer.  I'm looking for a good RAID card in the $200-300ish range.  What is the opinion of this card?  I've been reading that Areca is an excellent product, but I wasn't sure if there were any strong opinion

  • H.264 DirectShow decoding in WEC2013

    We are developing a WEC2013 device based on the i.MX6 processor family. I need to be able to playback H.264 encoded video, but I can see from this page that the BSP does not support H.264.  Does anyone know of any third parties that will provide H.26

  • LMS 3.2 RME 4.3.1 - Inventory goes into running status never completes.

        I recently added 15 switches to my CiscoWorks install via the DCR.  I waited a bit and none of them were discovered. I tried to kick start a job in inventory in the RME but they wouldn't leave the running state. I poked around the theads here and

  • Query on Idoc CRMXIF_PARTNER_SAVE 01

    Hi All, Settings have been made in CRM to trigger Idoc CRMXIF_PARTNER_SAVE 01 when there are any changes to Business partners, however I notice that the Outbound idoc contains only the data that has been changed apart from central data information. I