Wildcard search of .so to load/run

Hi all,
I'm trying to write an diagnostic tool for work to run through some debugging diagnostic steps on the target system.  It's quite simple idea in that on execution it will gather silicon, system information, read fuses, registers, bootstraps, run basic read/writes to flash/storage, toogle gpios, dump etc.  The tool will also run through security api calls, open/close sec devices, calling and testing encrypting/decrypting APIs and testing different drm api calls.  However I don't want the main tool to have knowledge of these security api calls, i would like to be able to have helper .so's with knowledge of specific drm api in their corresponding helper .so.
So ideally the tool should somehow dynamically load them by way of a wildcard search of all the helpers .so and execute each as it finds them.  I know with dynamically linking in sharedlibs, on execution, if it can't find the specific file a program would error out with message like "libcrypto.so.0.1 doesn't exist" or something like that, which i don't want to happen, I want the tool to continue and execute the rest of the diagnostic tests.  The tool should be able to dynamically search and execute whichever .so's that it recognizes and can find since I might have 5 different helper .so for different drm technologies but at any given time they might not exist within the filesystem due to licensing issues for different vendors.  Is there a way to do this?
-vincent

You can use the dl... C functions to load dynamic libraries at runtime. The dynamic loader does this for you when the program starts up but you can do it yourself. For example, in your shared library plugins, you could have common symbols (exported functions) for initializing, performing the test, checking the results, etc. The plugins would themselves link to the required libraries. These third-party libraries would then be loaded and linked automatically. You can set an RPATH in your main program to the plugin directory or use file access functions to search for them and pass absolute paths to dlopen. Or something like that.
dlopen, dlsym, dlerror, dlclose are the C functions you need to load libraries. I found think link on google: http://www.ibm.com/developerworks/linux … index.html. You can use functions like glob and opendir to search for plugin files. glob uses wildcards. I'm assuming you're using C.

Similar Messages

  • Oracle BI Publisher - Passing multiple wildcard search to a bind variable

    Hi,
    Please help me in resolving the below mentioned issue:
    I have developed a report in oracle BI Publisher with a SQL query.
    While scheduling the report to run I used to pass mutilple parameters like CGAMSVC08,RLCSVC51
    If the pass the parameter with wildcard search like C% it works.
    When I pass two or more parameter values with wildcard search like C%,R% its not working.
    Could you please let me know how should I give the bind variable in the SQL query. Currently I'm paramater like the one shown below for passing multiple paramaters:
    Where (',' || :PRMRETRID || ',' like '%,'||RL.RETROFIT_ID|| ',%')
    Edited by: user1101445 on May 23, 2012 2:02 AM

    HI Tyler.
    Well, here's the latest.
    I found this little gem in the BIEE 10.1.3.3.3 Release Notes Documentation...
    This issue applies to Versions 10.1.3.3, 10.1.3.3.1, 10.1.3.3.2, and 10.1.3.3.3.
    Reports that use the BI Publisher data template as the data model may fail with the
    following error: "Data not defined."
    This error will occur if you defined a parameter in your data template but you do not
    pass a value to it via the user interface. If you do not specify this parameter in the "Parameters" section of the report definition that you created using the BI Publisher Edit Report interface, then you will receive the error.
    To work around this issue, either define the parameter in the Edit Report interface or remove the parameter from the data template.
    That bit is now working.
    Having set this up and using your guide it works if my SOAP parameters declaration passes a single value like this...
    <parameterNameValues>
    <item>
    <name>P_INVOICE_ID</name>
    <multiValuesAllowed>true</multiValuesAllowed>
    <values>
    <item>16641</item>
    </values>
    </item>
    </parameterNameValues>
    But if I try and pass two or more like this...
    <parameterNameValues>
    <item>
    <name>P_INVOICE_ID</name>
    <multiValuesAllowed>true</multiValuesAllowed>
    <values>
    <item>16641,18421</item>
    </values>
    </item>
    </parameterNameValues>
    BIP states "java.sql.SQLException: ORA-01722: invalid number"
    My SQL where clause is..
    <sqlStatement name="Q1">
    <![CDATA[select * from vw_invoice_summary
                   where invoice_summary_id IN (:P_INVOICE_ID)]]>
    </sqlStatement>
    And the BIP error records the parameter value as P_INVOICE_ID 16641,18421 (which are legit invoice IDs)
    In summary, works if I pass one invoice ID, fails if I pass two or more.
    Any ideas? Or do you reckon this is now a post for the BIP forum?
    Kind regards.
    Simon

  • Wildcard search with catsearch on Oracle 10g

    Wildcard search problem is being discussed many times, however the solutions provided did not solve the problem.
    I am using catsearch to take its advantages and return results at a faster rate. Aim is to simulate a like '%abc%' using catsearch in 10g.
    Following are the steps to reproduce the problem.
    CREATE TABLE test
       (name VARCHAR2(60))
    INSERT ALL
    INTO test VALUES ('VCL Master')
      INTO test VALUES ('VCL Master S.')
      INTO test VALUES ('VCL Master S.A. Compartment 1')
      INTO test VALUES ('VCL MasterS.A. Compartment 2')
      INTO test VALUES ('VCL Master., S.A.')
      INTO test VALUES ('KCL Master Corp.')
      SELECT * FROM DUAL
    begin
    ctx_ddl.create_preference('Jylex', 'basic_lexer');
    ctx_ddl.set_attribute('Jylex','SKIPJOINS','.-=[];\,/~!@#$%^&*+{}:"|<>?`§´¨½¼¾¤£€©®''');
    end;
    begin
        Ctx_Ddl.Create_Preference('wildcard_Jylex', 'BASIC_WORDLIST');
        ctx_ddl.set_attribute('wildcard_Jylex', 'wildcard_maxterms', 15000) ;
    end;
    CREATE INDEX test_inx ON test(NAME)
    INDEXTYPE IS CTXSYS.CTXCAT
    PARAMETERS('STOPLIST CTXSYS.EMPTY_STOPLIST
    LEXER     Jylex
    WORDLIST wildcard_Jylex')
    problem1:
    select * from test where catsearch(name, 'CL Mast*', NULL)>0 --- no results returned
    problem 2:
    when I run the following query on the actual column of my table with 3 million records,
    select * from XXXX where catsearch (NAME, 'VCL Master S*', NULL) > 0
    I get the following error.
    DRG-51030: wildcard query expansion resulted in too many terms
    I have used () and "". Did a lot of R&D and still I am not able to a solution that resolves both of the problems.
    Suggestions will be much appreciated.
    Thanks.

    This post has nothing to do with Oracle Objects.  Perhaps some moderator will move it to the Oracle Text sub-forum/space, where it belongs.
    Your search for 'CL Mast*' did not find any rows because there aren't any rows that match that criteria.  If you want to return rows that have that string, then you need to add a leading wildcard.  Technically CTXCAT indexes and CATSEARCH do not support leading wildcards, but you can use two asterisks as a workaround, so you can search for '**CL Mast*'.
    Your wildcard_maxterms is set to 15000, so if there are more than 15000 words that begin with 's' in your 3 million records, then it will result in an error.  If you upgrade to Oracle 11g, then you can set the wildcard_maxterms higher or to unlimited by setting it to 0, but that may cause your system to run out of memory.  Most applications trap these errors and return a simple message to the user, indicating that the search for s* is too broad and to narrow the search.
    I would use a CONTEXT index with CONTAINS instead of CTXCAT and CATSEARCH.  It supports leading wildcards and you can index substrings for faster searches.  If you want it to be like the CTXCAT index then you can make it transactional.

  • Problem with: wildcard search in Endeca with Russian language, or adding custom stemming dictionary

    Hi endeca-gurus. I need your assist in typeahead functionality to implement it with endeca (also we should able to search within * from search input-field). So, per documentation, OLT doesn't support wild card search, but latin-1 does it. So,  I tried to switch to Latin-1, but it doesn’t work…maybe I performed some mistakes :
    1.created file stemming file named ru_word _ forms _collection.xml and added it to the MDEX..\conf\stemming\custom directory:
    <?xml version="1.0"?>
    <!DOCTYPE WORD_FORMS_COLLECTION SYSTEM "word_forms_collection.dtd">
    <WORD_FORMS_COLLECTION>
      <WORD_FORMS>
        <WORD_FORM>ноу</WORD_FORM>
        <WORD_FORM>ноут</WORD_FORM>
        <WORD_FORM>ноутб</WORD_FORM>
        <WORD_FORM>ноутбу</WORD_FORM>
        <WORD_FORM>ноутбук</WORD_FORM>
      </WORD_FORMS>
      <WORD_FORMS>
        <WORD_FORM>sm</WORD_FORM>
        <WORD_FORM>sma</WORD_FORM>
        <WORD_FORM>smar</WORD_FORM>
        <WORD_FORM>smart</WORD_FORM>
      </WORD_FORMS>
    </WORD_FORMS_COLLECTION>
    2. set USE _STATIC _WORDFORMS="TRUE" in <appname>.stemming.xml;
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <!DOCTYPE STEMMING SYSTEM "stemming.dtd">
    <STEMMING>
    <STEM_RU ENABLE="TRUE" USE_STATIC_WORDFORMS="TRUE"/>
    </STEMMING>
    3. run baseline_update script
    4. try to search with params in endeca_jspref:
    N=0&Ntk=All&Ntt=ноут*&Nty=1&D=ноут*&Ntx=mode+matchall&Dx=mode+matchall
    And search result is zero.. ((
    What the encoding should be for the edited files? any other suggestions for doing it?
    and, common question : willl endeca support wildcard search for russian in close future??

    Did you enable the dimension for wildcard search?  In dev studio, in the dimension pane there is a button called configure search, click it and check the wildcard search checkbox in the dialog.  I think you may have the stemming entry right but as OLT is fairly new I have not had a chance to test changing the default analyzer as yet. If my suggestion does not work or you have already applied the wildcard flag then I will dig a little deeper.
    best
    Terry

  • Accrual Reconciliation Load Run  report performance issue.

    we have significant performance issues when running accrual reconciliation load run report. we had to cancel after have it run for a day. any idea on how to resolve it?

    We experienced similar issue. As the runtime of this report depends on the input parameters. Remember, your first run of this report going to take significant amount of time and the subsequent runs will be much shorter.
    But w had to apply the patches referred in the MOS article to resolve the performance issue.
    Accrual Reconciliation Load Run Has Slow Performance [ID 1490578.1]
    Thanks,
    Sunthar....

  • Wildcard Search requirement for Items description and BP Name

    Hi Friends,
    I want to know is there any feature in Item Master data or Business Partner Master Data in which search is done by putting middle or last name. For example the Item Name is Electric Motar 345 Gear
    and when the user wants to search it by say Motar 345 then all items which inclused Motar 345 should come highlighted.
    Same for BP also its required as BP name is Glem Tex Japan Pvt Limited and now user wants to search the BP by say Tex Japan and all BP which includes the word Tex Japan should come.
    Is there any possibilities by which this can be achieved. Its somewhat wildcard search required. I heared its possible in B1.
    Regards,
    Kamlesh Gupta

    Dear Sridharan,
    I have exactly put the same as 'Motar 345 after Opening the Item Master Data and in find mode pressed * Enter and put the above in Find and selected Item Description. But sorry to say that nothing is coming and the cursor goes in the last item master data.
    What might be the problem can you please tell me.
    Regards,
    Kamlesh Gupta

  • SharePoint 2013 Online - Default Wildcard Search

    Is there a way I can change SP to always append a * to the end of every search?
    We're using the Online version (tied in with O365), and it has been requested that we have every search be a wildcard search by default. I found walkthroughs for SharePoint 2010, but the interface and menus have changed in 2013.

    You can edit the Search Results Web Part. Then from the web part properties, click on Change Query.
    Now in the popup modal window, click on "Advanced Mode".
    In Query text, you can use {SearchBoxQuery}*

  • Address Book wildcard searching LDAP

    With Address Book under Mac OS X 10.4 (Tiger), and 10.5 (Leopard) it was possible to do a wildcard search of an LDAP server for contacts. You did this by typing *. or ** in the search box in the top right.
    Unfortunately, this no longer seems to work in Address Book in Mac OS X 10.6 (Snow Leopard).
    Does anyone know of an alternative way of doing this?

    Do you use iCloud? If so, try going to the System Preferences then iCloud and unchecking Contacts. It will warn you about deleting the contacts from your Mac. If you know your other devices on iCloud have the correct contacts(or icloud.com) then this should be completely safe. Once you've okayed them to be removed, immediately recheck contacts.
    Please let me know if this works. Thanks!
    Autumn

  • Can't perform wildcard searches

    Hello world,
    We're using Portal 3.0.9.8.1 with Patch 1949492 installed. This is on 8.1.7.2.4 SE Database.
    When performing a search, cannot include wildcards. E.g. a search for 'test' returns only the exact word 'test'. It does not return 'testing','tester','test1','detests'.
    This is against what Portal's Own Help file states. Click 'Search Tips' on the 'Advanced Search Page' and you are told the following:
    The % character is interpreted literally, so do not include it as a wildcard. If you enter 100% as your search term, search finds content that contains the text 100%, not 1000 or 10000. Wildcards are automatically added to the beginning and end of your search term, so searching for 100 will automatically return content that contains 1000 and 10000.
    If interMedia is installed and enabled, search automatically uses the stem operator to search for words that have the same linguistic root as the specified word. For example, if you specified the word lift, the search feature will return content that contains the words lift, lifting, lifted, etc.
    Both of these statements are blatantly untrue as it does neither.
    Any thoughts Oracle? Has anyone else managed a wildcard search?
    Frustrated
    Dave

    I've just verified in 3.0.9 and wildcards are applied as specified in the documentation, when Text is not enabled. If your search term is 'test' then the SQL query will have the search term %test%. Literal % signs in your search term are escaped, so that if your search term was test% then the query would be for %test^%% escape ^.
    There are a few things to remember. When searching WITHOUT Intermedia Text enabled the search will only match terms in the title and description of the item.
    When, Intermedia Text is enabled, all of the content will be searched. However, as indicated in the documentation, the stem operator will be used. So if you search for 'test' the query is now a Text contains('$test') type query. The default operator is the '$' stem operator, which match terms that have the same linguistic root. So if your search term is 'test' it should match 'tests' or 'testing' or 'tested'. However, it will not match 'test1'. Please refer to the Intermedia Text documenation for more information on the stem operator and Text searching in general.

  • Wildcard searches for WBS element

    HI Experts,
    Can anyone give a example prgm for wildcard searches to WBS element LIPS-PS_PSR_PNR field.
    Thanks in advance.

    Hi,
    This is standard system behaviour. Purchase requisitions generated by MRP do not add to commitment. However, when these PRs are converted into POs, the POs add to commitment. Purchase requitions genertaed directly from PS, without the intervention of MRP always add to commitments.
    Regards
    Muraleedharan.R

  • How to do wildcard search?

    Does anyone know I can do wildcard search like *.jpg or my**.jpg? And yes, don't tell me to use the Terminal and copy and paste path.

    Spotlight searches are pretty much wildcard searches, you just don't need the wildcards.
    However, if you want to do it, look at a Raw Query. This post shows some of its capabilities using the Terminal command mdfind, but you can use a Raw Query in the Finder and he talks about how to select that from the criteria menu.
    http://blog.scottlowe.org/2012/07/25/advanced-spotlight-queries-in-the-mac-gui/
    With a Raw Query, you don't use the mdfind command, but the rest of the search is entered into the Find window.
    Also, see here: https://developer.apple.com/library/mac/documentation/carbon/conceptual/spotligh tquery/concepts/queryformat.html

  • Wildcard search in SharePoint 2013.

    Hi ,
    I have SharePoint 2013 farm, which is migrated from 2010 to 2013. After migrating to SharePoint 2013, wild card search is not working. Could someone please help me in activating wildcard search for already configured search service application in SharePoint
    2013.
    Thanks,
    Badri.
    Badri

    Hi
    I am trying to do a partial search without using wildcard by setting the query text of the search result source to {searchTerm}*. The search works and gives me the right results. However,
    the results look differently.
    When I do search for abcd*, the words that are started with abcd in the Title, Summary and Path parts are highlighted.
    And when I do search for abcd, I have exactly the same search results back. but the words are not highlighted. and besides that, the Summary text is different.
    I believe even if I had the right search result items back, the Title, Summary, and Path properties are created based on the searchEntry. Is there any way to make the items look exactly the same without manipulating with the searchEntry value?
    Thank you,
    Tatiana

  • Move to next record / wildcard search

    Hi
    Hope you can understand this explanation..
    I have searchable database for Holiday & Residential
    property here
    http://www.roomtobreathesl.com
    (search facility in the navigation menu)
    The results page for this search works fine for when you
    specify a certain
    area, certain amount of beds etc as it only shows a small
    amount of
    properties.
    However when you do a search for any area / any amount of
    rooms / any type,
    the query brings up over 40 results, so a move to next record
    is used. This
    is where the problem lies. You cannot move to next record as
    the 'Next
    record' link is looking for another wildcard search (see
    status bar).
    Any ideas how to remedy this?
    Thanks for any help
    Gary

    oops!
    Sorry sent you the previous version that's online.
    I also tried doing a search and replace and changing all
    'Request.Form' to
    'Request'
    Still didn't work.
    This is how it was when it wasn't working.
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="Connections/YotShop6.asp" -->
    <%
    Dim rsResults__MMColParam
    rsResults__MMColParam = "1"
    If (Request("yscon") <> "") Then
    rsResults__MMColParam = Request("yscon")
    End If
    %>
    <%
    Dim rsResults__ysbed
    rsResults__ysbed = "1"
    If (Request("ysbed") <> "") Then
    rsResults__ysbed = Request("ysbed")
    End If
    %>
    <%
    Dim rsResults__MMColParam3
    rsResults__MMColParam3 = "xyz"
    If (Request("type") <> "") Then
    rsResults__MMColParam3 = Request("type")
    End If
    %>
    <%
    Dim rsResults
    Dim rsResults_numRows
    Set rsResults = Server.CreateObject("ADODB.Recordset")
    rsResults.ActiveConnection = MM_YotShop6_STRING
    rsResults.Source = "SELECT * FROM YotStock WHERE Area LIKE '"
    +
    Replace(rsResults__MMColParam, "'", "''") + "' AND bedrooms
    LIKE '" +
    Replace(rsResults__ysbed, "'", "''") + "' AND type LIKE '" +
    Replace(rsResults__MMColParam3, "'", "''") + "' ORDER BY
    price ASC"
    rsResults.CursorType = 0
    rsResults.CursorLocation = 2
    rsResults.LockType = 1
    rsResults.Open()
    rsResults_numRows = 0
    %>
    "Julian Roberts" <[email protected]> wrote in message
    news:euj4if$ici$[email protected]..
    >>> Use Request instead of Request.Form for runtime
    parameters.
    >
    > You haven't done it :)
    >
    > --
    > Jules
    >
    http://www.charon.co.uk/charoncart
    > Charon Cart 3
    > Shopping Cart Extension for Dreamweaver MX/MX 2004
    >
    >
    >
    >

  • Show-stopping error when I try to load/run the muse code with JQuery version 1.9.1.

    Version 1.9.1, and the muse code uses 1.8.3.  As you can see HERE,http://jquery.com/download/ version 1.9.0 was a major milestone release for JQuery that eliminated much of the (deprecated) functionality of earlier versions. Unfortunately, the muse html uses some of that deprecated functionality (specifically, the "browser( )" function HERE)http://jquery.com/upgrade-guide/1.9/#jquery-browser-removed. Thus I am getting a show-stopping error when I try to load/run the muse code with version 1.9.1. Other people have had this same problem (see THIS)http://bugs.jquery.com/ticket/13214.
    Do you see an update in the near future?

    Version 1.9.1, and the muse code uses 1.8.3.  As you can see HERE,http://jquery.com/download/ version 1.9.0 was a major milestone release for JQuery that eliminated much of the (deprecated) functionality of earlier versions. Unfortunately, the muse html uses some of that deprecated functionality (specifically, the "browser( )" function HERE)http://jquery.com/upgrade-guide/1.9/#jquery-browser-removed. Thus I am getting a show-stopping error when I try to load/run the muse code with version 1.9.1. Other people have had this same problem (see THIS)http://bugs.jquery.com/ticket/13214.
    Do you see an update in the near future?

  • I have a mac book pro with os x 10.5.8.......sometimes will not load google or yahoo, or any other search engine, but will load regular sites.....why is this?

    i have a mac book pro with os x 10.5.8.......sometimes will not load google or yahoo, or any other search engine, but will load regular sites.....why is this?

    Check System Preferences - Accounts
    Choose you account - login items: If iTunesHelper
    shows up - remove it it will prevent re-installation.
    It did not have iTunes in the list, just mail and iCal alarm. Deadlines and emails are vital in my home office.
    Now that I think about it, adding Mail to the list was the only thing that I had changed to the computer when this happened, but I can't imagine how that would alter permission to install on the OS.
    Eric
    Note: I saw a G5 1.2 for $1,500 CAN. I was tempted.

Maybe you are looking for

  • Pricing Procedure and Condition Types

    Hi Guys, What do we mean by a pricing procedure in SD? Where do we assign this Pricing Procedure and what is the purpose of this? Also what do we mean by the condition types? What does a condition type signify... Please let me know the tcodes and als

  • Logical System Name is defined for which type of Business Sytem

    hi Can some one helps me on this question and explaination. Logical System Name is defined for which type of Business Sytem ? a.Third Party b.Web AS java c.WebAs abap d.Standalone java Thanks Chandra

  • Connect to SharePoint web service using the XML / Web Service connector

    Hi experts, I am currently trying to display my SharePoint list in Crystal Report. Therefore my plan is to use a SharePoint web service to get the data and paste them to the Crystal Report. Is it possible to use the "XML and Web services" connector o

  • Creating shell script for cloning

    Hi, I am cloning 11.5.8 instance. For copying of files from source to production I use rcp command. I want to create shell script that copies the files and lwhen it is complete send an email to my rediffmail account. There are 2 problems:- 1. How to

  • Photo album problems

    If you have photo albums, you can't delete them. Manual says go to photo albums and click edit, a delete button will come up next to album and then delete. No button is coming up by the albums, if you add an album with no pictures in it, the delete b