Go Back    


Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Split multi runs

Shell Programming and Scripting


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-14-2017
galboski galboski is offline
Registered User
 
Join Date: May 2017
Last Activity: 14 May 2017, 5:45 PM EDT
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Split multi runs

So I need to write a script (script1) which run other script (script2) multiple time, but split the runs.

lets say I need to run 100 times. but I want it to run 5 times at a time and after all the 5 runs of script2 are done anther 5 start.

Script1 define the variable in script2 as the number of the run.

I'm realy lost,
thanks for the help.

Last edited by Don Cragun; 05-14-2017 at 07:17 PM.. Reason: Add ICODE tags.
Sponsored Links
    #2  
Old 05-14-2017
Don Cragun's Unix or Linux Image
Don Cragun Don Cragun is offline Forum Staff  
Administrator
 
Join Date: Jul 2012
Last Activity: 18 October 2017, 5:21 AM EDT
Location: San Jose, CA, USA
Posts: 10,536
Thanks: 548
Thanked 3,689 Times in 3,147 Posts
Is this a homework assignment? Homework and coursework questions can only be posted in the Homework & Coursework forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

If you did not post homework, please explain the company you work for and the nature of the problem you are working on. Please also tell us what operating system and shell you're using, and show us what you have tried to do to solve this problem on your own.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Split multi columns line to 2 columns jhonnyrip Shell Programming and Scripting 4 02-09-2016 11:11 PM
Multi head/multi window hello world advorak Programming 2 06-09-2015 02:20 PM
How to substract selective values in multi row, multi column file (using awk or sed?) nricardo Shell Programming and Scripting 4 10-15-2012 10:13 AM
Split file based on multi valued attributes snukala Solaris 7 02-06-2011 01:16 AM



All times are GMT -4. The time now is 09:08 AM.