Sponsored Content
Top Forums Shell Programming and Scripting Need to run same script multiple times in parallel Post 302344317 by rahman_riyaz on Saturday 15th of August 2009 09:37:19 PM
Old 08-15-2009
Need to run same script multiple times in parallel

Hi all,

I have a requirement in which a script invokes a Java program.

Lets say script ABC invokes a java program with cfg file a parameter.

This script takes 10 minutes to execute .

Like this ineed to run the program 10 times meaning 100 minutes if i do it sequentially.

If i open different consoles and run the program i need to open 10 consoles.

But the requirement is dynamin i may need to run teh script 30 tiems as well.

Thus the option of openeing a unix console for every script is not advisable.

My though process is to run a run which has command to invoke Java program.

like

ABC xyz_1.cfg
ABC xyz_2.cfg
ABC xyz_3.cfg
ABC xyz_4.cfg



Now id i run this eventhen it execuets in sequence. Thus not fulfilling the purpose.

IS there a way in shel scripting where we can force the script to execute the next command without waiting for the prsent commands output or end of execution

Thanks all in advance
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Run a same script in parallel with diffs parameters

i have script say some_script.ksh that takes an argument I need to run some_script.ksh in background parallely at the sametime with different arguments. Once all the background jobs complete, i need to run this script again in parallel with another 5 set of arguments. Would really... (1 Reply)
Discussion started by: hyennah
1 Replies

2. Shell Programming and Scripting

Running same script multiple times concurrently...

Hi, I was hoping someone would be able to help me out. I've got a Python script that I need to run 60 times concurrently (with the number added as an argument each time) via nightly cron. I figured that this would work: 30 1 * * * for i in $(seq 0 59); do $i \&; done However, it seems to... (4 Replies)
Discussion started by: ckhowe
4 Replies

3. UNIX for Advanced & Expert Users

Run a script parallel for a month's worth:

Is there a utility that can be used in a shell script that would run a .sql file for 30 or 31 days in a month at the same time parallely. Please Advice. Thanks SD12. (2 Replies)
Discussion started by: sd12
2 Replies

4. Shell Programming and Scripting

script - how to prevent in parallel run

I have one shell script which is being accessed by many jobs at same time. I want to make the script such that , other job should wait for the script if script is being used by some other job. Is there any way to implement it in script level ? Gops (1 Reply)
Discussion started by: Gopal_Engg
1 Replies

5. Shell Programming and Scripting

Shell script to run x times

Hi, First i need to cd to this directory $SWDIR/util Second i need to run the following either 4 times or 20 times ./swadm add_process 1 BG Y how can i put this in a script which should ask for user input on how many times you want to run this Thanks, (5 Replies)
Discussion started by: lookinginfo
5 Replies

6. Shell Programming and Scripting

Counting script how many times it run?

i should use this script runs how many times before ? how can i do_? (3 Replies)
Discussion started by: utoptas
3 Replies

7. Shell Programming and Scripting

Run a script in parallel

Hey, I am new to UNIX scripting . I have script (ex: start_script) that starts a job in 10 different servers one server after another.Now I want to modify the script so that the script starts the job in all servers parallely (at a time in all servers).and I need the choice of selecting the... (3 Replies)
Discussion started by: mpspsm
3 Replies

8. Solaris

Set script to run during specific times

Hi all, I have this script which sends mail whenever the system is down. It works fine. Normally the system is down from 21 00 to 21 30 from Monday to Saturday and from 21 00 on Sunday to Monday 06 00 for maintenance. So I want the below script to run only when the system is up, i.e outside the... (2 Replies)
Discussion started by: frum
2 Replies

9. Shell Programming and Scripting

Run script in parallel in while loop

Hi I am running a loop which actually runs same script for different argument value passed to it. while read repID do echo "Starting for $repID"; date; perl process_report.pl $repID done<${FILE_TO_READ} However this runs in sequence. I want the loop to not to wait for perl to... (3 Replies)
Discussion started by: dashing201
3 Replies

10. Shell Programming and Scripting

Run rest of script after parallel steps have completed

Hello gurus, I produce a number of .loc files in parallel depending on number of .csv in the folder for file in *csv do ./process.sh $file > $file.loc & done then I want to compile all the output from the previous step into a single masterlocfile and then perform the rest of the steps... (2 Replies)
Discussion started by: senhia83
2 Replies
RHINO-DEBUGGER(1)					      General Commands Manual						 RHINO-DEBUGGER(1)

NAME
rhino-debugger - invokes the rhino JavaScript debugger GUI SYNOPSIS
rhino-debugger [options] script_filename_or_url [script_arguments] DESCRIPTION
This manual page documents briefly the rhino-debugger command. This manual page was written for the Debian distribution because the origi- nal program does not have a manual page. It is written according to the html documentation. rhino-debugger is a start script for the rhino JavaScript debugger. The Rhino JavaScript debugger is a GUI that allows debugging of inter- preted JavaScript scripts run in Rhino. Note that this debugger will not work with JavaScript scripts run in the mozilla browser since Rhino is not the engine used in such environments. OPTIONS
-e script_source Executes script_source as a JavaScript script. -f script_filename_or_url Reads script_filename_or_url content and execute it as a JavaScript script. -opt, -O optLevel Optimizes at level optLevel, which must be an integer between 0 and 9. -version versionNumber Specifies the language version to compile with. The string versionNumber must be one of 100, 110, 120, 130, or 140. See JavaScript Language Versions for more information on language versions. -strict Enable strict mode. EXAMPLE
Example debugging the NervousText.js applet written in JavaScript. The example is provided in the librhino-java-doc package. $ rhino-debugger NervousText.js SEE ALSO
The online documentation under http://www.mozilla.org/rhino/debugger.html AUTHOR
This manual page was written by Damien Raude-Morvan <drazzib@debian.org>, for the Debian project (but may be used by others). Friday 17, 2009 RHINO-DEBUGGER(1)
All times are GMT -4. The time now is 03:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy