Accessing concurrent prg parameter values having space in shell script

Hi, I have a CP that is tied to Host (shell script). One of the parameter values of CP contains spaces. When I print this parameter ($5) in shell script, space is taken as terminator and it parses it in mutiple postions, like if value is "Hello There" then $5 comes as "Hello" and $6 comes as "There"
How do I access whole values including space as one parameter value?
Regards,
Harish

Hi Ashutoosh,
OS is SunSolaris 5.9
My problems was that if I pass a value from concurrent program that has space and wanted to access that value in shell script as one parameter, it won't allow.
I did anlaysis on this and I think for now, there is no way out. If I pass values from unix to shell script it works, because I will enclose in quotes.
I removed the spaces while passing value from Concurrent program and was able to achieve what I wanted but its an work around.
Thanks,
Harish

Similar Messages

  • Spaces in shell script application?

    how do I signify a space in the application name in the following script:
    do shell script "/Applications/Plex Media Server.app/Contents/MacOS/Plex Media Scanner -s -r"

    You can escape spaces in the path with a backslash, but since the backslash is also the escape character you need to escape it as well, so you wind up with:
    /Applications/Plex\\ Media\\ Server.app/Contents/MacOS/Plex\\ Media\\ Scanner
    Usually it is easier to use quoted form of, and let the system figure it out:
    set somepath to quoted form of "/Applications/Plex Media Server.app/Contents/MacOS/Plex Media Scanner"
    do shell script somepath & " -s -r"

  • Can a java app pass values to a c-shell script?

    hello everyone,
    I'm running a shell script that executes a java app.
    I need to pass values from the java app to the shell script, such that I can code
    java myapp
    echo <value1>
    echo <value2>where value1 and value2 have been set in the app.
    is there a way to do this?
    Thanks for your help.
    Tom

    Wira, I've tried this, and can't get it to work. The
    problem may be that Runtime.getRuntime().exec() is
    running the script on a separate process(?), Yep.
    and I
    never see any output in the same context as the
    script that's running the java app.
    I've tried this from the command line as well, and I
    don't see any output from the script being called
    from the java app.
    I know the script is being run, because if I change
    the script name to a name that doesn't exist, I get
    an ioexception, when I change it back everything runs
    ok.
    Note that I'm testing this under XP with batch files;
    eventually it will run on unix.
    does that make a difference right now?Forget java for right now.
    Start working on a way for the script to hoist the values into itself.
    For example if the script calls another script which does the echo what happens?
    Or can you call another script, set some env variables, and then see them in the original script?

  • RWRUN60: Problem with parameter value containing space between single quote

    Hi All
    I'm using RWRUN60 to generate my report by following way:
    C:\orant\BIN\RWRUN60.EXE userid=DBUser/dbpasswor@db BACKGROUND="NO" BATCH="YES" DESFORMAT="pdf" DESNAME="C:\report.pdf" DESTYPE="FILE" ORIENTATION="LANDSCAPE" PARAMFORM="NO" P_REPORTID="2431" P_REPORTNAME="Report Name" report="C:\report.rdf" P_WHERE="StartDate>=to_date('2011-07-14 10-37-00','YYYY-MM-DD HH24-MI-SS')"
    When I tried to run given command above nothing was executed executed and any log didnt created.
    I found out that problem occurs when text between two single quotes contains spaces. In my case it is a parameter P_WHERE. I need to keep such format because it is part of report query.
    When I removed last parameter from command RWRUN60 successfully genereate pdf document.
    Further I added new test parameter P_TEST(it is ignored by rdf) in the end of command line following:
    P_TEST="test '11'" - rwrun60 generates report
    P_TEST="test '1 1'" - rwrun60 doesn't; generate report
    Can somebody help how to resolve given problem. Is it parsing bug or what else?

    Spaces on command lines a very often a bad idea. Get rid of them by changing the command, e.g.:
    to_date('2011-07-14:10-37-00','YYYY-MM-DD:HH24-MI-SS')

  • Dealing with spaces in shell scripts

    I have read everything I can about quotes (single and double), backslash and more and I'm stuck.
    I need to compare files to do some make like things. Many of the files have spaces in the name. Here's the script:
    #!/bin/sh
    ROOT=$HOME
    PROJECT="/Documents/MMM/Victoria/Documentation"
    FILE="/Audio Control 1.0 a1.pages"
    FULLPATH="${ROOT}${PROJECT}${FILE}"
    echo ls -l \"$FULLPATH\"
    ls -l \"$FULLPATH\"
    and here's the output:
    ls -l "/Users/wesM/Documents/MMM/Victoria/Documentation/Audio Control 1.0 a1.pages"
    ls: "/Users/wesM/Documents/MMM/Victoria/Documentation/Audio: No such file or directory
    ls: 1.0: No such file or directory
    ls: Control: No such file or directory
    ls: a1.pages": No such file or directory
    what's echoed looks exactly right, and if I copy and paste to a shell, it works fine, but when run from within the script, its acting like the double quotes are not there?

    If what I'm seeing in the post
    ls -l "$FULLPATH"
    is correct, then you have told the shell "These are not the quotes you are looking for". So the shell did NOT treat the double quotes as having an special meaning, removed the backslashes, parsed the string into 4 arguments, and passed the 4 arguments including the leading and trailing quotes to the ls command:
    arg[1]: "/Users/wesM/Documents/MMM/Victoria/Documentation/Audio
    arg[2]: Control
    arg[3]: 1.0
    arg[4]: a1.pages"
    Notice that the leading double quote is part of arg[1], and the trailing double quota is part of arg[4].
    You most likely wanted to say something like:
    echo ls -l ""$FULLPATH""
    ls -l "$FULLPATH"
    Notice that I added an extra layer of double quotes to the echo command. The first layer of double quotes tells the shell that this is a single argument. The backslash double quotes tells the shell that these quotes inside of a double quoted string are NOT terminating the string, but rather are to be treated as part of the string.
    And no backslashes on the ls command tells the shell that whatever $FULLPATH expands to is to be treated as a single argument.
    Always remember it is the shell that parses the command line into tokens so it is also the shell that handles the quoting. The command is just handed an array of strings already broken into individual arguments. The command does not see the quotes. The command does not see the variables.

  • How to capture the parameter value of Concurrent Program submited

    Hi,
    I would like to capture the Parameter value of Concurrent Program submitted through Submit Request screen based on that i want to return value.
    When Conc prog "Payroll Run" along with parameter like "Pay Period" which has LOV attached to it, which has one coulumn named "End Date", this value selected needs to be captured. Can you please tell the Table name where the value is stored or Captured.
    I want this value to be used in Fast Formula which will return the desired value to Input Value.
    Actually in one of the Element I have Input Value as "Monthly Days" which should be populated with the "Number of days" in the period in which Payroll is being processed.
    Thanks in advance.
    Ram

    Hi,
    fnd_concurrent_requests.argument_text stores the argument values in comma separated form. But check the prior response from thierry first - fnd_concurrent _requests is not the place you want to be getting things from as it can be purged and so you source data is gone!
    Gareth
    http://garethroberts.blogspot.com

  • Unable to read space page parameter value throug EL

    Hi All,
    I have been stuck in a big problem, I have to use dynamic page template in web center space means Different template for different pages.
    For this I added a new page parameter in page properties but I am not able to read any Page Parameter Properties through EL.
    Now my question is how can I get Page Parameter value through EL?
    I appreciate your quick response.
    Thanks :)

    you can check it out the below mentioned links-
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/taskflows_parameters.htm#CHDIAIJJ
    http://www.exampledepot.com/egs/javax.servlet.jsp.jstl.core/getparam.html
    http://blogs.oracle.com/shay/entry/passing_parameters_to_an_adf_p
    http://www.orastudy.com/oradoc/selfstu/fusion/web.1111/b31974/web_adv.htm#CACFGEBH

  • How to exec. stored procedure having out parameter value in shell script ?

    Hi Gurus,
    I am writing a shell script which is calling a SP having out parameter as varchar2.
    So how can i do this in shell scripting ? (I am a new in shell scripting)
    a simple example is preferred.
    Thanks
    Sandy

    So how can i do this in shell scripting ? Assuming you want to assign the out parameter value to a shell variable, here's a small example :
    SQL> select ename from emp where empno=7902;
    ENAME
    FORD
    SQL> create or replace procedure show_name (
      2     v_empno in number,
      3     v_ename out varchar2)
      4  is
      5  begin
      6     select ename into v_ename from emp
      7     where empno = v_empno;
      8  end;
    SQL> /
    Procedure created.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    $ cat show_name.sh
    ENAME=`sqlplus -s test/test << EOF
    set pages 0
    set feed off
    var V1 varchar2(30);
    exec show_name($1, :V1);
    print V1
    exit
    EOF`
    echo $ENAME
    $ ./show_name.sh 7902
    FORD
    $

  • How to download values of any field having spaces from table ?

    Hi Experts,
    I have one requirement. From table but000, I have to download some values for field name1 based on partner values. The problem is the names are having spaces after it, i need to download completely including extra spaces after name.
    I have searched many threads , but coudnt find any useful information.
    i am just dowloading form edit, download options.
    Regards,
    Gaurav.

    Hello,
    In my opinion, you need to download the data as a text file. Then import it in excel. While importing you can do some settings to keep the spaces, leading zeroes etc.
    Hope this helps,
    Regards,
    Himanshu

  • Accessing a Resource Present in A folder Having Space In Name In weblogic

    Hi All,
    i am having a jsp page with name my.jsp present in folder "My Folder"(Space is there between My and Folder), when i try to access this jsp in WebLogic10.3 JDK6 WindowsXp server it is throwing the following JSPCompilation error
    weblogic.servelt.jsp.CompilationException : Failed to compile JSP /My Folder/my.jsp
    my.jsp:3:2: The declared package "jsp_servlet._my_32_folder" does not match the expected package "jsp_servlet._my_37_20folder"
    url: http://localhost:7001/MyWebApp/My Folder/my.jsp
    IE7 is converting this url to http://localhost:7001/MyWebApp/My%20Folder/my.jsp
    Same is working fine in Tomcat5.5.17
    Any configuration is required in weblogic to access a url having space??
    Thanks in Advance......
    Ravi.

    Gudise.Ravi wrote:
    I didnt get any respone to that thread, that is the reason why i posted in this forum alsoGeesh. At this part of the world, where the most smart users and welwilling forum contributors walk around, it was around 2:38AM in the late night/early morning and you expected response sooner than a few hours? How rude can you be? Please wait at least 24 hours before impatiently crossposting or kicking up topics.

  • Business Parameter value access through PAPI Client

    I'm new to Oracle BPM. Currently working on PAPI client development and requires a value from a Business Parameter "InterestRate".
    Could somebody help me out. Is it possible to get the Business Parameter value from a PAPI client.
    Thanks

    I could be wrong, but I think the Business Parameters are stored in the FDI. I've never had the need to hit it from Java, but I believe a couple folks on this forum might be able to give you a pointer on the FDI API.
    Dan

  • How can I show Search Form parameter values in URI of Results page?

    I have searched through these pages for posts relating to caching but haven't seen any that relate to my issue.
    We run a website that accesses data through search forms and returns matching data to the requester in a results page. The search criteria are entered in a form and the results page is generated by a servlet that gets the search parameter values that the user entered using the GET method.
    I would like rewrite this Search page using JDeveloper to bring our old code up to date and take advantage of new features that should help performance. In particular, I want to utilise the WebCache.
    To use the WebCache effectively, the cache needs to know what the search criteria were when it delivers a page so that repeated requests using the same criteria can be served directly from the cache.
    The data retrieved by a query may change from one search to to the next so I can't use time-based caching. But, I can use the WebCache Invalidation interface from the back-end DB server to flush old data out of the WebCache when it is changed, but to flush out the correct pages I need to know the parameter values passed.
    If I just follow the demos, it seems like the search parameters are all hidden in beans or something which means that the Web Cache can't be used for what I want. The parameter values are important.
    So my question is: is there a way of showing the search parameters used in the URI to the Results page? Can the old GET method of parameter passing be used (or can I somehow just put the old style parameters onto the URI?)
    Alternatively, is there a simple How To or Demo on how to use the Web Caching facility with JSF?
    (ADF Caching and Java Object caching do not seem appropriate for my needs. ADF caching seems to be limited to having fragments cached for fixed periods of time and Java Object caching is orders of magnitude slower and involves the Application Server.)
    Thanks for any advice,
    Andy

    Sorry - should have said I'm using JDev 10.1.3.0.4 with JSF & ADF BC.

  • Pass Parameter value through hyperlink?

    Hello and a Happy New Year to everyone!
    I have an ASP.NET web application that I am making. I was wondering if it were possible to pass a value to a CR that has a parameter value.
    In my example, I have a report called rptLicenseReport. This report has a parameter value of FileNo. Which comes from the field File No in the table License Applications in the database (Access) . Of course, CR does its own curly bracket thing for the parameter... but I was wondering if it was possible to have a hyperlink on my main page that points to the report.aspx page (which holds the report viewer, and the report as a whole) while passing the File Number.
    Essentially I would like the link to look like : www.urllinkhere.com/report.aspx?FileNo=6
    and when clicked that path would open the report.aspx page and pass the FileNo into the report. I have tried to make the report and have the link pass just like that but the report comes back with an error stating that there is no parameters chosen/given (thinking off-hand, error is something like that).
    Any help with this problem would be greatly appreciated. For those interested my report is in VB language, not C#.
    Much Thanks!
    --Matt
    Edited by: Matthew Gonzalez on Jan 2, 2009 8:50 AM

    AG,
    Much thanks for the code, I modified it to fit my VB environment and it worked well. What I have it doing is utilizing some of the earlier information on the http requerying having the labelID in the URL get posted to a label. Using your code I then have the label ID set as the parameter source. This worked fine and it now populates the report with the ID of the earlier record selected.
    Here's my code as an FYI and future reference:
    Protected Sub LabelReference (ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load
            lblID.Text = CInt(Request.QueryString("FileNo"))
        End Sub
        Protected Sub ReportDocument(ByVal sender As Object, ByVal e As System.EventArgs) Handles CrystalReportSource1.DataBinding
            Dim rdoc As New ReportDocument
            Dim rptValue As Object
            rptValue = CInt(lblID.Text)
            rdoc.Load(Server.MapPath("~/files/rptLicenseView.rpt"))
            rdoc.SetParameterValue("FileNo", rptValue)
            CrystalReportViewer1.ReportSource = rdoc
        End Sub

  • Is it possible to access task flow parameter in EOImpl.create() method?

    Hi,
    Is it possible to access task flow parameter in EOImpl.create() method? If yes, please let me know how to access.
    FYI..I am having CreateInsert<xxx> activity in the task flow, which I believe calls EOImpl.create() method internally. While creating the entity, I want assign a default value based on task flow parameter.
    Thanks

    One way to pass task flow parameters to the model is during the task flow initialization. For this purpose you can create a prepare() method in your Application Module and call it from the task flow. By setting this method as the default in your task flow, it will be called each time the task flow starts. You can pass to the prepare() method any task flow parameters you wish as function arguments. In the prepare() method, save the task flow parameter values in EO or VO transient variables. These variables will be then accessible in the create() methods.

  • Urgent help required - linked subreport keeps asking for parameter value

    Greetings,
    I have developed a report in the Crystal Reports bundled with Visual Studio 2005. The data is obtained from a stored procedure. One of the fields in the result set is named "Id".
    I have embedded a subreport in the details row of the main report. The subreport also gets its information from a stored procedure. This stored procedure has one parameter named "OpportunityId". This field is linked to the field named "Id" above. the subreport has been set to supress blank subreports.
    In the development environment and running the executable of the application on the development machine the report works perfectly. The subreport displays as it should and all is well.
    When I deploy the report onto user machines where they have the crystal runtime installed, the report keeps asking for a parameter value for the subreport.
    I cannot get this to stop happening.
    This report is urgently required. PLEASE could someone help me out here.
    I am at my wits end.
    I have attached a zipe file containing the following:
    - the two stored procedure
    - the rpt file
    - a sample report
    - a screen showing the report having just been generated
    Thanks in advance,
    Robert Lancaster

    <p>Hi Robert,</p><p>I see your report template and stored procedures. All seems to be ok. <br /></p><p>The most important is to assign the report parameters for all linked subreports (only one in your case).</p><p> </p><p>Try this (in C#, in VB.NET the code are very similary): </p><p>ReportDocument report = new ReportDocument(@"TopFortyReport.rpt");</p><p>AssignParameters(report, paramCollection);</p><p>// and now assign parameters to all linked subreports </p><p>foreach( CrystalDecisions.CrystalReports.Engine.Section section in report.ReportDefinition.Sections)</p><p>{</p><p>    foreach (CrystalDecisions.CrystalReports.Engine.ReportObject reportObject in section.ReportObjects)<br />    {</p><p>        if (reportObject.Kind == ReportObjectKind.SubreportObject) </p><p>        {</p><p>            SubreportObject subReport = (SubreportObject)reportObject;</p><p>            ReportDocument subDocument = subReport.OpenSubreport(subReport.SubreportName);                                               AssignParameters(subDocument, paramsCollection);</p><p>        }</p><p>} </p><p> </p><p>void AssignParameters(ReportDocument report, object[] paramsCollection)</p><p>{</p><p>    int nParams = paramsCollection.Length;</p><p>    for (int iParamIndex = 0; iParamIndex < nParams; iParamIndex++)</p><p>    {</p><p>        if (report.DataDefinition.ParameterFields[iParamIndex].IsLinked())</p><p>            continue;</p><p>        report.SetParameterValue(iParamIndex, paramsCollection[iParamIndex]);</p><p>    }</p><p>}</p><p> </p><p> </p>

Maybe you are looking for

  • Multiple JVMs

    Hi, Can I run multiple JVMs on the same machie. If I can, then what are the repurcussions of this. Spark

  • Shapshot Replication to Master

    I would like to make a snapshot replication from a third party database (any type of database anywhere) to a Master. How hard would it be to set this up for several 100 db and to maintain it?

  • COGS and cost center (by order reason)

    hi, i am confuse of COGS and cost center which assign by order reason below is my scenario, free sample order will be created for both outside customer and internal department. if free sample order for outside customer, COGS will have after PGI, but

  • Dispatch time

    Hi, For one of the output type I gave parameters for Dispatch time as '3' (Send with application own transaction). Many Invoices created with NAST-VZTYP as '3'.  I want to change(around 200 invoices) from '3' to '1' (Send with periodically scheduled

  • Starting Workflow when new BOM created and exist one change.

    Hi All, Please kindly help that I have to create a workflow for trigger the BOM creation or change. And now I can't find what is the trigger event is for both of BOM creation or change. Could you please let me know which event should I used for trigg