UNIX Shell Script - Maxl - executing 4 Maxl script at the same time

Hi,
I wrote a UNIX shell script that basically call 4 maxl script to execute at once. But it seem to executing 2 maxl and then it goes to the last script. So, script 4a,4b,4c, & 4d should execute all at the same time. But for some reason at random only two script is being executed. And then it would go to script 5. Anybody have any answer to why it's doing this? Or is it something i'm doing it is incorrect help please?
I'm running essbase 11.1.2
Here is my script:
#!/bin/sh
# Maxl script to run
export MAXL_SCRIPT_1=/hyperion/..../script1.maxl
export MAXL_SCRIPT_2=/hyperion/..../script2.maxl
export MAXL_SCRIPT_3=/hyperion/..../script3.maxl
export MAXL_SCRIPT_4a=/hyperion/..../script4a.maxl
export MAXL_SCRIPT_4b=/hyperion/..../script4b.maxl
export MAXL_SCRIPT_4c=/hyperion/..../script4c.maxl
export MAXL_SCRIPT_4d=/hyperion/..../script4d.maxl
export MAXL_SCRIPT_5=/hyperion/..../script5.maxl
/usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_1 "
wait
/usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_2 "
wait
/usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_3 "
wait
/usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_4a " &
/usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_4b " &
/usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_4c " &
/usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_4d " &
wait
/usr/bin/sh -c "cd /hyperion/...../bin/; ./startMaxl.sh $MAXL_SCRIPT_5 "
echo Done.
Thanks,
Mark

Thanks!
I just noticed that the problem was due to something *within my application*.
I explain:
i built an application and I want it to be activated by my script.
I have another script running, but this is not a problem as I discovered later...
The problem is indeed that my script activates my application, but even when my application is opened, so it succeded, it stays hanged.
I found that the same thing does not happen with regulare applications, such as Safari or iTunes, so i narrowed down the probglem to my application...
Is there something i should do to it?
I checked the "scriptable" checkbox inside my application plist, but the result is still the same...

Similar Messages

  • Execute 4 jobs at the same time

    Hello guys,
    Is it possible with DBMS_SCHEDULER to execute 4 jobs at the same time. I'd like to use DBMS scheduler to refresh 4 different materialized view at the same time. After that, I'd like to start another job if they refreshed correctly.
    So, can this be achieved?
    Thanks for your help

    It can be achieved using a chain job. Here is how you would do it:
    Call DBMS_SCHEDULER.create_program to create 5 programs corresponding to the 4 MV jobs + the one extra job.
    Call DBMS_SCHEDULER.create_chain to create a new disabled chain.
    Call DBMS_SCHEDULER.define_chain_step to create 5 chain steps corresponding to the 5 programs you created earlier.
    Call DBMS_SCHEDULER.define_chain_rule to create 3 chain rules:
    -- Rule1:
    condition => 'TRUE'
    action => 'START step1, step2, step3, step4'
    -- Rule2:
    condition => 'step1 SUCCEEDED and step2 SUCCEEDED and step3 SUCCEEDED and step4 SUCCEEDED'
    action => 'START step5'
    -- Rule3:
    condition => 'step5 SUCCEEDED'
    action => 'END'
    Call DBMS_SCHEDULER.enable to enable the chain.
    Call DBMS_SCHEDULER.create_job to create the corresponding chain job of type chain.
    Hope that helps.

  • Avoid 2 instances of a BPEL process executing an activity at the same time?

    Hi,
    Is there a way I can avoid execution of an activity from two or more different instances of the same BPEL process at the same time?
    I would like to know if I can lock the activity across BPEL instances so that only one instace can execute an activity at a time?
    Kindly give me possible ways I can achieve this? We are using BPEL PM 10.1.2.
    Thanks,
    Sasi Bhushan

    As HEWizard said, you need to look at 'singleton'
    http://blogs.oracle.com/matt/2006/08/23
    http://orasoa.blogspot.com/2007/05/create-singleton-process.html
    the idea behind a singleton is you can only make one instance of the process. In the process you can handle the sap-activity.

  • Execute 2 processes at the same time same session

    is it possible to execute 2 (or 3, 4 would be better =) store procedures at the same time trough the same session?
    (something like parallelism)
    I need to to that, I don't care too much the result of the execution, some ideas???
    I made a store procedure that makes ping to 400 ip's but is kind of slow, I have one DB trigger to execute it, that is the reason to execute it "trough parallelism".

    MikeWasouski wrote:
    is it possible to execute 2 (or 3, 4 would be better =) store procedures at the same time trough the same session?
    (something like parallelism)
    I need to to that, I don't care too much the result of the execution, some ideas???
    I made a store procedure that makes ping to 400 ip's but is kind of slow, I have one DB trigger to execute it, that is the reason to execute it "trough parallelism".Don't use triggers. Triggers are there to guard the integrity of the data of the table. It is not the best of ideas to make use of triggers to perform other work that's not relevant to that integrity of that row's data - like sending an e-mail or pinging an IP for example.
    Triggers however can trigger work that needs to be done when a row is inserted. The triggers can schedule a DBMS_JOB. This becomes part of the transaction that trigger is subjected to.
    When that transaction is committed, the DBMS_JOB is committed for execution. When the transaction is rolled back, that DBMS_JOB is removed and not executed. Unlike doing the work in the trigger where the work is done (e.g. sending an e-mail) when the transaction can still be rolled back.
    When scheduling a once-off job, you also need to decide how you are going to deal with errors in the job. Bad firing off 400 jobs to ping IPs and your code is broken somewhere (run-time error) and have these 400 job executing (and failing) 16x times each, before clogging up the job queue as broken jobs.

  • Execute several workitems at the same time

    Hi everybody, we are implementing the Release Payment Funcionality, but due to a big volume of workitems it's necessary to execute a lot of workitems at the same time.
    I mean, we manage 3000 workitems per week and all of them follow a procedure in wich in some cases there is only one "Releaser", so he needs to release payments in a mass way.
    Is it possible to do that??
    Regards

    If the Approval step is a User Decision, the Approver can first select all that he/she shall Approve or, all that he/she shall Reject, or whatever other options you configure. 
    Once selected, click on the "Execute" button found on the toolbar immediately above the list of workitems in the Business Workplace.
    The Approver will then be presented with the User Decision for the first selected work item.  Now, whatever choice he/she wants applied to this and all selected work items, they should click it.
    Next, the Approver will be prompted with a question asking if they want the same choice applied to the selected work items that remain.
    I don't suggest this method for all 3,000 at once, but in a pinch, for a few hundred at a time, it works pretty well.
    Hope this is relevent...apologies if not.
    Tom Carruth

  • Will USB-6251 execute multiple tasks at the same time?

    Hi all,
    I have an application controling an experiment and logging data using a USB 6251. One measurement uses Two Edge Seperation , and takes a while to complete (20 to 30 seconds). Meanwhile I need to execute another task repeatedly to sense a digital input pin. Does anyone know if the USB 6251 can execute a second task while it's busy doing the edge seperation task? So far I haven't found anything in the documentation or on the forums.
    BTW I can't just 'try it and see', or at least it's very tricky to do so. The control system is at the top of a scaffold tower, a long way from my development system. Every code change has to be deployed and installed to test it.
    I recomend you avoid such an installation if you can  )  It makes for a tough time debugging.
    Thanks for any help.
    Bandit.
    Message Edited by Bandit on 03-20-2007 12:05 PM

    A small addition to YatimM's answer
    You can execute two tasks together as long as they are not accessing the same channels or digital lines.
    For acquisiton on analog input channels, you cannot execute 2 tasks simultaneously even if they scan for 2 seperate sets of channels
    For Ex: task 1: acquiring from analog channels 0 to 3 and task2 : acquiring from analog channels 4 to 6, will still give a 'device reserved' error, because a single ADC is available and used for multiplexing all channels in a task/ scan list and the second task will give up this error

  • Executing two commands at the same time from Runtime.getRuntime

    Hi everybody,
    I m executing a command of imageMagic from javacode to crop and for changing the quality of image.The code is as below :
    String changeQuality = new String("convert " + originalImage
                        + " -crop " + imageWidth + "x" + imageHeight + "+" + imageX
                        + "+" + imageY + " -quality " + quality + " " + finalImage);
                   Runtime.getRuntime().exec(changeQuality);
    But before going to next page of jsp I want the size of the finalImage. So I m calling a new function from the base file, from which i m calling the above function, for getting the size of image:
    public String getSize(String finalImage) {
                   proc = Runtime.getRuntime().exec("identify " + finalImage);
    As identify cmd gives the size and various values of image but this command is showing the size zero. and if try to read the file then it shows FileNotFoundException.It means the file is not on the server.
    What should i do to execute both the command and getting the right result.
    Any help is appreciated.
    Thanks in advance.
    Vivek Kumar Gupta

    Hi everyone,
    Nobody ans my question but finally i got the ans of my question.
    I use a input stream for reading the first one imagemagic command. through this the second command execute after the first command finished its execution.
    And my images are now displaying without error.
    I know now you all are thinking how great mind I am!!! hai na
    Hmm woh to main hoon.
    post a question if u have over here. Perhaps i can solve your prob.

  • How do you stop multiple users executing the same calc script at the same time?

    We have an issue when  users uplaod a spreadsheet and then run a calc script. at one time we have multiple exectuions of the script running.
    This slows up the system and we have to go cancel all the executions and run it again.
    Can we stop this and put them on a queue, so only one execution of the calc happens at one time. Or stop multiple executions getting submitted at all.

    You could use EXCLUSIVECALC to stop more than one calc running at the same time, although this will apply to all applications on your server.  And it doesn't just stop the same calc being launched twice.  Easier than the alternatives I can think of though, if it works for you.

  • Multiple scripts running at the same time?

    Is there a way to have multiple scripts successfully running at the same time?
    At the moment if I start a second script while the first one is still running, the second one completes successfully but the first one stops. This seems to be because the first one is no longer the active document once the second one opens so can't continue.
    Is there another way to script things like this so that multiple can run independently at the same time? You might ask why I'd want to run two at the same time and not just wait, but i've setup an asp.net web form front end and having problems if two people click the button around the same time.
    I'm guessing this isn't going to be possible and i'm going to have to look for ways of doing this in asp.net instead and somehow queue the requests so you have to wait longer if the script is already running?
    Thanks,
    Andy

    I'm
    guessing this isn't going to be possible and i'm going to have to look
    for ways of doing this in asp.net instead and somehow queue the requests
    so you have to wait longer if the script is already running?
    This is correct. The scripting interface to PS is single-threaded so you will need to queue up requests.

  • Bash script: Rotate your wallpaper and SLiM theme at the same time

    EDIT;
    I've decided I should really thank Cerebral for his help with writing this script; this thank you should have been here from the get go.
    After writing:
    #!/usr/bin
    echo "Hello World!"
    I wrote a script to rotate my fluxbox background and SLiM theme at the same time, so I could have a contiuously changing background and still have a smooth transition from SLiM to fluxbox.  (It just looks so much cooler when both have matching backgrounds).  By the time you finish reading it, and configuring your box so it will work, you will probably have decided you could have writtin your own, better script to do the same thing.  But, on the off chance anybody finds use for it, here it is:
    (this should be obvious, but: don't run this script without at least reading the comments)
    #!/bin/bash
    #this is a script to rotate a number of backgrounds
    #to be shared by the fluxbox desktop and SLiM login manager.
    #it is the first meaningful script I've written. It may be
    #freely distributed and used with the understanding that you are
    #using it at your own risk.
    #Before running this script you need to check that your SLiM
    #themes are installed to the path /usr/share/slim/themes, which
    #is the defulat path for installation in Arch. Here are some
    #other things you need to set up:
    #1. create (if you don't have it) the directory /usr/share/wallpapers
    #2. create a wallpaper in /usr/share/wallpapers called 'dummy' by copying
    #you current wallpaper to that filename
    #3. set your window manager to display the wallpaper 'dummy', this works fine
    #using a style overlay in fluxbox, I haven't tested it with any other window
    #manager, but I don't see why this would cause a problem.
    #4. create a directory /usr/share/slim/themes/current, you can copy one of
    #your slim themes into that directory if you want. (this will prevent you
    #from seeing some error messages the first time you run the script)
    #5. define the names of the themes you want to rotate, in order for this
    #script to work, you must name them "themeNUMBER", where NUMBER is replaced
    #by an integer. Your themes must be numbered consecutively, start with 1
    # that is:
    #theme1 , theme2, theme3, etc. , theme305
    #If you don't number consecutively, this script will not run properly. You
    #must also define the total number of themes as "rotate_number"
    #6. Check if the script runs, if it does, you should change /etc/slim.conf to
    #use the theme "current"
    #7. This theme will now rotate your SLiM theme and wallpaper in such a way as
    #to make them match each other. Note that SLiM will not let you change themes
    #"on the fly", (as of July 6, 2008), so changes will not be apparent unless you
    #restart SLiM. I run the script before I run slim in my etc/rc.local local
    #script, so each time I reboot I get different wallpaper / login background.
    #Fred Drueck 2008
    #Define here all themes to be rotated and the total number of
    #themes to rotate:
    rotate_number=9
    theme1=/usr/share/slim/themes/default
    theme2=/usr/share/slim/themes/lake
    theme3=/usr/share/slim/themes/lunar
    theme4=/usr/share/slim/themes/flower2
    theme5=/usr/share/slim/themes/the-light
    theme6=/usr/share/slim/themes/mindlock
    theme7=/usr/share/slim/themes/parallel-dimensions
    theme8=/usr/share/slim/themes/wave
    theme9=/usr/share/slim/themes/fingerprint
    #check you are running this script as super-user:
    if [ $(id -u) != "0" ]; then
    echo "You must be the superuser to run this script" >&2
    exit 1
    fi
    echo "rotating themes"
    #figure out which theme is currently set, then name it as the variable
    #"last theme number", otherwise set last theme number as 0
    if [ -f /usr/share/slim/themes/current/current_theme_number ]
    then
    echo "checking current theme"
    cd /usr/share/slim/themes/current/
    eval last_theme_number=$(cat /usr/share/slim/themes/current/current_theme_number)
    echo $last_theme_number
    else
    echo "no theme is currently set, using theme 1"
    last_theme_number=0
    echo $1 > /usr/share/slim/themes/current/current_theme_number
    fi
    #set the new theme number
    eval new_theme_number=$(($(($last_theme_number % $rotate_number))+1))
    #select the new theme
    placeholder=theme
    eval new_theme=\$$placeholder$new_theme_number
    echo $new_theme
    #now clean out the "current" theme where I keep the current
    #theme for slim
    rm /usr/share/slim/themes/current/background*
    rm /usr/share/slim/themes/current/panel*
    rm /usr/share/slim/themes/current/slim.theme
    #the wildcards are there since the themes use jpg and png files
    cp $new_theme/background* /usr/share/slim/themes/current
    cp $new_theme/panel* /usr/share/slim/themes/current
    cp $new_theme/slim.theme /usr/share/slim/themes/current
    #increase the theme number, but first clear the old file
    rm /usr/share/slim/themes/current/current_theme_number
    echo $new_theme_number > /usr/share/slim/themes/current/current_theme_number
    #copy over the dummy wallpaper in "/usr/share/wallpapers" (with the theme
    #background file
    cp $new_theme/background* /usr/share/wallpapers/dummy
    exit 0
    Last edited by pseudonomous (2008-07-07 21:59:42)

    oh i forgot to mention... its rotating while moving. i.e. is doesn't have to stop rotate and then continue back to origin.

  • Problem in calling Java Script and Process at the same time

    Hi Frenz,
    I have a requirement like this. when i press the button a page level process(Not Application level Process) and java script function has to happen. i wrote the Java script function to close the child window and reload the Parent window. I wrote the Process for the Parent window to get the updated screen.
    But the Process is not happening and the only the java script function is achieved.
    Can you suggest any idea to achieve both of the things at the same time?
    Thanks in Advance.....

    See this example:
    http://apex.oracle.com/pls/otn/f?p=31517:93
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Execute more than one thing at the same time.

    Hey why every time i want to execute more than one thing(create tables) at the same time
    it say "ORA-00911: invalid character" , i dont wanna execute one thing at a time. check the pic please
    http://img370.imageshack.us/img370/5120/oraclesw5.jpg
    but in my school i use something called isqlplus and i can execute all the things i want at the same time with-out any error.
    im using right-know
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

    1) Unless you are using something like DBMS_JOB, SQL*Plus, iSQL*Plus, the Oracle XE web-based front-end, or any other application is going to execute one SQL statement at a time.
    2) There is a dedicated XE forum-- the folks over there might know how to run a script using this particular front-end.
    3) Assuming the XE database is on your local system, you should be able to log in via SQL*Plus and use that utility to run your scripts.
    Justin

  • Can RMAN backup and export datapump executed at the same time?

    Hello,
    I have several databases that I backup using RMAN and export datapump everynight starting at 6PM and end at Midnight. The backup maintenance window doesn't give me enough time for each database to run at different time. I am using crontab to schedule my backups. Since I have so many databases that need to be backed up between 6PM - Midnight, some of the export and RMAN backup scripts will execute almost at the same time. My question is can my export data pump and RMAN backup scripts run at the same time?
    Thank you in advance.
    John

    Needs must. If you don't run expdp parallel then it doesn't use that much. If it was really killing the system then look into setting up a Resource plan that knocks that user down but this is a big step.
    I woud better look into using Rman
    system incrementals, and block change tracking, to minimize your RMAN time.
    Regards
    If your shop needs to do both simultaneously then go for it.
    Chris.
    PS : One of my shops has maybe 20-30 rmans and pumps all kicking off some simultaneous, some not, from 0000 to 0130. No complaints from users and no problems either. Go for it.
    Edited by: Chris Slattery on Nov 25, 2012 11:19 PM

  • Call and Execute Multiple Windows of the same VI

    Hi,
    I would like to call and execute multiple windows of the same VI.
    Please take a look for my attached vi, and start from the 2x2.vi, i think you have to re-enter the file path to run (sorry for inconvenience).
    If I click the start button in different sub panels, the sub vi(Temperature Analysis.vi..& etc) should be called out in multiple windows, hold it, and run simultaneously.
    But now the problem is, the sub vi is called out 1 by 1 until it is finished prior the second sub vi is called.
    May I know how to solve that?
    Thanks.
    Attachments:
    My VI.zip ‏173 KB

    Hello TanTan
    1. Open the PopUpmain.vi and select the path of PopUp.vi
    2. Enter the number of popups and run the VI.
    Hope this attached VI will work as per your expection. Please select the less number of instances 
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet
    Attachments:
    PopUpMain.vi ‏12 KB
    PopUp.vi ‏8 KB

  • OIM - Same tasks being executed at the same time

    Hi,
    I'm using Lotus Notes and SAP User Management connector to provision users to these target systems.
    Both Lotus Notes and SAP has a issue related to same tasks being executed at the same time. In other words, if we try to create two or more users in these systems, an error is thrown because a user is currently being created.
    So, when I run a trusted reconciliation, I'm getting many errors related to this issue because OIM is trying to create more than one user at the same time in the same target system.
    Does anyone knows if I can configure OIM to run the same provisioning process only when the previous process is already completed?
    Best Regards.
    Nitto.

    Frankly, I haven't thought about using OVD yet. I just assume that OIM should be able to deal with 2 instances of the same kind of ITResource. Because this requirement is very common.
    I did a little experience. For the second OID, I created manually a new set of ITResource, Resource Object, Process Form, Process, AttrName Lookup Code, Recon Rule. The apporach seems working. I can successfully provision the OIM user to the OID now.
    But a problem is in the original OID User Process definition created by the OID connector installation, there are almost 20 Process tasks, how do I copy those tasks to my new Process definition? I just mannually created a "Create User" task, which is needed for provisioning.

Maybe you are looking for

  • Change in PO Qty after GRN

    Hi Gurus, PO created on behalf of PR with 7000 of Quantity, now after delivering 2000 of Qty, vendor refuses to supply balance Qty. Hence want to reduce QTY in  PO and make a fresh PO for balance Qty to other vendor. But now unable to change Qty in P

  • Xcode updating MySQL through phpScript in foreign languages

    I've a code in xcode which runs a web link to execute phpScripts. ================================================================================ ==== NSString *strURL = [NSString stringWithFormat:@"http://www.???.com/1.php?customerid=你好"]; // to ex

  • Max size of a stringbuffer

    Hi, i would like to know if there is a limit for a Stringbuffer object. Regards, Euclides.

  • Possible to lock *all* settings for a completed project?

    Hi Once a project is completed is it possble to lock all the project settings?

  • Tracking Treasury Stock in SAP?

    Hello! I am wondering if SAP has any capabilities to track Treasury stock purchases and issuances for stock options and employee stock purchase plan.  Any thoughts on this would be greatly appreciated! Thank you, Diane