How to execute a Perl script and returns the value as a string?

Hi, I am trying to build an application using the eclipse 2.0.0 with the Blackberry SDK 7.1 plug-in. currently I tested Simulator 9900 version 7.1.0.523. I need to use the Perl language to access the raw biological database and returns as a string without having to write a longer program using java.

In a stand alone Java SDK, I can use the line:

Process p = Runtime.getRuntime () .exec ("perl script.pl")

but when I tried to use it on the IDE for a Blackberry project, the project will not compile. It is said:

Method exec (String) is undefined for the type of Runtime

Hopes, can someone show me the correct syntex to use, but if no class is available, could someone show me a sample for unified research process? The names of blackberry dev is very complicated, I can't find any samples for her.

Thank you.

Seems interesting.

Your idea was to download the data to the BlackBerry and then directly execute queries.

Although there are a number of other obstacles, the first fall you in East platforms supporting Perl.  Here is the list:

http://perldoc.Perl.org/perlport.html#supported-platforms

BlackBerry OS Java is not included - in fact the only ' included phone OS is Symbian.  Interestingly, it seems likely that PlayBook and BB10, because they are based on the QNX operating system.

If we discard Perl as a query language, then you will need to provide another option to search.  I think that unified search is an option, but you will have some work to do to use it.  The first thing you should do is find out if in fact, you can download the database on the BlackBerry.  The only available on the Blackberry database engine's SQL, so if you want the database can be exported to a SQL database, there is a chance that it would work.  I had a quick glance around the site, and I can't tell what the "database" is in the format.  Then I suggest that look you at that next.

I hope this helps.

Tags: BlackBerry Developers

Similar Questions

  • How to execute a Perl Script in ODI and Catch error

    Hi all

    Someone knows how to execute a Perl script in a package? And also how capture/error log when occurs?
    Gladly appreciate your answers.

    Thank you
    Randy

    Published by: [email protected] on March 12, 2009 12:29 AM

    Hi Randy,

    Use the OS command to achieve this. In your package add command OS and in the command line, specify the path of your perl script.

    PS: Make sure that your agent may be able to access this location/path specified.

    Thank you
    G

  • Call a jscript vbscript script and return a value

    Hello world

    I'm trying to simplify a tedious task: every day I have to fill in an InDesign document with 48 different numbers that go into 48 blocks of text. I would like to write a script to get these numbers (the temperatures that I get in an excel file) automatically and write them in the corresponding text blocks.

    So basically I use jscript to implement a document. So I want him to call a vbscript script (since only vbscript can retrieve an excel cell value) and have it return the value to the jscript in a variable.

    So far I managed to adapt a .vbs script that retrieves the number of the cell and the poster in a box:

    Option Explicit
    Dim objApp, objWbs, objWorkbook, objSheet

    Set objApp = New
    Set objWbs = objApp.WorkBooks
    objApp.Visible = False
    Set objWorkbook = objWbs.Open ("C:\Temperature")
    Set objSheet = objWorkbook.Sheets ("Sheet1")

    MsgBox objSheet.Range ("C5"). Value

    objWorkbook.Close False
    objWbs.Close
    objApp.Quit

    ObjSheet = Nothing set
    Set objWorkbook = Nothing
    Set objWbs = Nothing
    Set objApp = Nothing

    But it is only that. I always have trouble with:

    (1) the order doScript: How can I call the jscript vbscript script?

    (2) writes the value retrieved (or table) in a variable in vbscript script

    The rest is easy: in the jscript, write the table in the corresponding text blocks.

    Hope someone can help me. Thank you very much

    Maphio M.

    When you place an Excel file in InDesign, it becomes a table. From there on, it's a simple as myFrame.tables [0] .cells [x] .silence (myFrame being a reference to the image that you placed the Excel file in).

  • How do I click on a cell in a table control and display the value in a string?

    What I want to do is click on a cell in a table control and have the value of the cell in an indicator of the chain. Cell that ever I click on, I wish that the value to be displayed in the indicator.

    Thank you!

    Use the property "Change Position".

  • How to run VB of JSX and return a value?

    Someone knows how to do this?

    $.writeln('result:\r' + app.doScript('wsh.echo "test"', ScriptLanguage.VISUAL_BASIC));

    WSH and wscript give an error 'object required '. Same script works very well as a vbs file.

    It seems that these objects are simply not available when executing doScript, but y at - it another way to return a value?

    Justin Putney says:

    Substances. wrote:

    FWIW, to return a value from VB using doScript, you need returnValue = SomeValue at the end of your VB script.

    I know that this is the case with a Sub or Function... is that his operation at the end of a script as well?

    To answer your questions, here is an excerpt of work I have that gets the file in Excel:

    var vbs = 'Set MyXL = GetObject(, "Excel.Application")\r' +
    'Set ActiveXL = MyXL.activeworkbook\r'+
    'returnValue = ActiveXL.Path';
    var path = app.doScript(vbs,ScriptLanguage.VISUAL_BASIC);
    
  • How to allow users to sign and return the forms fillable

    Hello

    I completed a form to complete with a signature box (it is a registration form) to send to the users. I got responses that say (based on the extended rights) that the form can be completed and saved but not signed or signed and completed but not recorded.

    is it possible to have the form completed, signed and returned.

    My apologies if I'm missing something really obvious.

    Thank you

    (should mention I use convert function Echosign, but some fields have javascript that is not sopported after conversion).

    It should be, since compatible with Acrobat Pro documents will be signed digitally sign digital applied right use, allowing player.

  • How to execute a stored procedure that returns a cursor?

    How to execute a stored procedure that returns a cursor?

    Follow the code:

    CREATE OR REPLACE PROCEDURE stp_cashin_grupo
    (p_func in VARCHAR
    p_cod_grup in full
    p_des_grup in VARCHAR
    p_logi in VARCHAR
    p_curs_rset ON infoc.pck_cashin_grupo.curs_rset
    )
    IS
    BEGIN

    If p_func = "1" then
    OPEN FOR P_curs_rset
    Select
    cod_grup
    des_grup
    dat_manu_grup
    des_logi_manu
    of infoc.tbl_cashin_grupo
    order of des_grup;
    end if;
    END stp_cashin_grupo;


    and packaging:

    CREATE or REPLACE PACKAGE pck_cashin_grupo
    AS
    TYPE curs_rset IS REF CURSOR;
    END pck_cashin_grupo;

    My question is how to execute in sql plus?
    Stp_cashin_grupo EXEC ('1', 0, ", '465990', my doubt is how to move the cursor as return)


    Thank you

    It is described in the manual

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14357/CH5.htm#sthref1122

  • How to perform a function and return the result in a variable of liaison

    Hello

    I'm trying to calculate the sum of the salaries of all persons with a particular using a function JOB_ID TOTAL_INCOME (v_job_id).

    create or replace function total_income
    + (v_job_id in VARCHAR2) +.
    Number IS BACK
    v_total number (6);

    cursor get_sal is
    Select the pay of employees
    where job_id = v_job_id;
    BEGIN
    v_total: = 0;
    for emp in get_sal
    loop
    v_total: = v_total emp.salary; +.
    end loop;

    dbms_output.put_line (' Total salary ' | v_job_id |' is: ' | v_total);
    Return v_total;
    END;

    Now I woud like to perform this function and assign the value returned in a variable binding test_sal

    test_sal variable number (6)
    SELECT total_income ('AD_VP') in: test_sal FROM DUAL;
    dbms_output.put_line (' Sal Total :'||: test_sal);

    This returns the errors below:

    SELECT total_income ('AD_VP') in: test_sal FROM DUAL
    *+
    Error on line 0
    ORA-01036: illegal variable name/number

    dbms_output.put_line (' Sal Total :'||: test_sal);
    Error on line 3
    ORA-00900: invalid SQL statement

    Could someone help me what could be the problem? Thanks for your time...

    Hi Kiran and welcome to the forum,

    You mix SQL and PL/SQL

    It's the way in which SQL:

    SQL> SELECT total_income('AD_VP') FROM DUAL;
    
    TOTAL_INCOME('AD_VP')
    ---------------------
                      123
    1 row selected.
    

    It comes to PL/SQL in SQL * more

    SQL> variable test_sal number
    SQL> execute :test_sal := total_income('AD_VP')
    PL/SQL procedure successfully completed.
    SQL> exec dbms_output.put_line('Total Sal:'||:test_sal)
    Total Sal:123
    PL/SQL procedure successfully completed
    

    Concerning
    Peter

  • How can I take an anchored frame and return the paragraph tag used?

    I need to analyze through anchored frames and return the tag of paragraph that it is spotted. I can't find a property which returns the paragraph tag. Anyone have any ideas?

    Try this on the anchored frame selected:

    #target framemaker
    
    var doc = app.ActiveDoc;
    var aFrame = doc.FirstSelectedGraphicInDoc;
    var pgf = aFrame.TextLoc.obj;
    
    alert (pgf.Name);
    

    Rick

  • ProBook 455 L3P93ES G2 #ABZ: installation without end and return the video driver AMD R6 and R7 M260DX and stop on a black screen system

    Hello, I'm in trouble with this problem. If anyone can help me, I appreciate a lot. Thank you in advance.

    Laptop: HP ProBook 455 G2 L3P93ES #ABZ

    Problem: windows back AMD R6 and R7 video driver to the old version of windows update install. Return process the screen come black and stop here.

    Procedure, I followed:

    1. updating the bios with the latest version (M75_0141.bin)
    2. new facility created by HP Cloud recovery customer USB boot disk
    3. Install the drivers and programs of the HPSoftwareSetup.exe util
    4. Connect the network cable and upgrade the drivers and the HP Support tool programs assistant
    5. Install the software
    6. Join the Organization's domain
    7. Force Windows Update to version 1607 by the upgrade of Windows tool
    8. Windows Update

    Item 4, at random, windows update 10 and return the driver from these versions:

    • 15.201.1301.0
    • 15.201.2301.0
    • 15.300.1025.1001

    I don't have install the AMD specific video driver (Radeon Crimson Edition 16.7.3 software) or drivers from the Chipset AMD (Crimson edition 16.7.3) because when I try in a previous installation of test I had the same problems

    To restore the display I have to start windows in safe mode and disable the two R6 and R7 display cards, and then restart. After that I can reactivate the cards one time.

    This device first question first time I install Windows 10 the year in August (Yes, after a few days Windows 10 out)

    Any help that will be much appreciate because I have to reinstall on 20 laptops for the school to start the day.

    Thank you

    ScuolaCarovana

    Hello;

    Let me welcome you on the HP forums!

    From your description, it seems that, after you have installed the correct video driver for your ProBook (15.201.1301) AMD, Windows Update is then by installing a different driver on top of that, right version?

    If this is the case, you must follow these instructions to STOP Windows update update drivers: how stop Windows 10 to update automatically the device drivers - windows Windows 10-10

    Once you do this, you should not see updates to the pilot after that.

    Good luck

  • Do stuff to PL/SQl that returns the value and redirect to modal page by setting this value

    Hello

    a button click Page1 I would perform a PL/SQL procedure that returns a value in P1_ITEMVAL and then redirect to a page 2 (modal page) and the value of an item on this page with the value previously returned. To do the same thing with a normal page is quite easy:

    Button action is present, then process of PL/SQL that returns the value in the P1_ITEMVAL element and, finally, a branch at page 2 that sets P2_ITEMVAL with P1_ITEMVAL. I really have no idea how to do the same thing when the target is a modal page.

    I created a unit test on https://apex.oracle.com/pls/apex (application 1554 - redir_to_modal)

    Workspace: tests

    USER: supporter

    PWD: supporter1234

    Any help would be much appreciated.

    Kind regards

    Pavel

    Pavel

    If you prepare a URL using the value calculated in the PLSQL of DA part you can then use a subsequent stage of javascript to set the location of the window.

    This will jump to the top of the page of the modal dialog box

    : P1_URL: = apex_util.prepare_url)

    ' f ? p ='|| : APP_ID - Application id

    |': 2' - Page id

    ||': ' || : APP_SESSION - Session id

    ||':'                      -- Request

    ||':NO'                    -- Debug

    : ': ' - Clear Cache

    : ': ' - Settings

    ||' P2_ITEMVAL'

    : ': ' - Parameter values

    || (: P1_ITEMVAL);

    then in the action of javascript

    Window.Location.Replace ($v ('P1_URL'));

    Hope this is of some use

    Concerning

    Kelvin

  • How to choose the value of a string are numeric together and words of letters (for example, TEST)

    Hi all

    How to choose the value of a string are letters (for example, TEST) and all numeric...

    for example
    TEST 123456
    TEST 34567
    123456 ABCD
    1234 TEST
    TESTING 12345
    TEST 1@234$
    YOUR T 123456

    I want the results of the query as below.
    TEST 123456
    TEST 34567

    And I tried to use regexp_like in this case but without success. See the code below.
    SELECT * FROM TABLE WHERE regexp_like (Description, ' [TEST] % & [[: digit:]] + $');

    How can I do this, please answer.

    Thank you

    WF

    If you want to return only the rows that contain the string 'TEST', followed by zero or more space characters, followed by one or more digits?

    How about this:

    SELECT *.

    FROM my_table

    WHERE REGEXP_LIKE(description,'^TEST\s*\d+$')

  • How gemfire locator can be configured to return the full DNS name for the customer?

    We have an index running before 2 cache servers,

    Locator.DomainA == > Server1.DomainA, Server2.DomainA.

    the problem is when the customer (customer. DomainB) try to access gemfire via locator, it up ' get: not connected to GemFire' exception, the reason is that the Client.DomainB uses the full name "Locator.DomainA" to access the gemfire, the Locator maintains only the servers host name, when the client runs the query, it access Server1 or Server2, but in this case, the networking is not connected.

    How gemfire locator can be configured to return the full DNS name for the customer?

    in gemfire.properties, Locator attribute is full domain name already.

    Thank you

    Yao

    There is a parameter for hostname for the customers that you can put in your cache.xml file cache-server element. It is a string that is passed the server for the location, and then on the Locator for the customer. You must set this client-to-host name in each of your cache servers.

  • I just remdered and recorded an intro I would like to use for all my projects, it is saved in a (* perl) file and is the only option to save in this format.  "When I try to open this file and start a new project using tha the intro file, I get an error.

    I just made and recorded an intro I would like to use for all my projects, it is saved in a (* perl) file and is the only option to save in this format.  When I try to open this file and start a new project using tha the intro file, I get an error "the file is not a supported file or codex is not installed.  How can that be, I made the file using this program and he does'nt recognize files it creates?  Please advise... Thanks /.

    grethell

    What version of Premiere Elements you are using and on what computer operating system is running?

    You cannot import a project file (.prel) in another.

    For now, generalize choice

    a. export your Timeline (your intro) content to a file saved on the hard drive of the computer. And then import that

    file in new projects by using the new project add Media/files and folders. See publish + Share/computer/and the other

    choices here to generate this file intro for later use in other projects.

    b. you can set up what is called a dummy projects - this is a project with nothing other than the intro file. And, at all times

    you want to use the intro, you open one of these saved dummy projects and add your media sources.

    A lot of things to discuss. Please fill in some details more and then we can refine the answer for your particular situation.

    Thank you.

    RTA

  • InDesign server web service - where is the support to download a file with the script and download the result?

    Hello

    I'm working on a VINE which is supposed to convert indd files in pdf format (that is, using of course the indesign server). Basically, I want to call the Web Service of IDS (located on another machine, perhaps), spend in the input file, the conversion script and retrieve the result under the WebService call?

    Navigation on the documentation, examples, etc. in the SDK, I couldn't see how the above can be achieved unless the client manages the transfer of files. Surely I must be missing something...

    Thank you

    Chris

    What do you mean by POC?

    InDesign Server is too valuable (i.e. cost of the license) to waste his time with file transfers.

    For a smaller scale, letting a separate process (http or smb server) on the same server hardware files - InDesign Server providing access on the local volume faster.

    If you are planning for bigger, use a dedicated server for file sharing (at the choice of the SMB, NFS, or other), when the input files are prepared by the process of the client, so that your load balancing program can immediately point the next free instance of the InDesign Server farm to the file. In this case, be prepared for some trial and error - high-speed file sharing can be tricky with files written on one side not yet visible or incomplete on the other side, locking problems, filename Unicode trouble, unexpected time and so on.

    BTW, there is also a forum of InDesign Server which would be more suitable for these discussions.

    Dirk

Maybe you are looking for