Unix/Linux 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

Thread Tools Search this Thread Display Modes
Old Unix and Linux 05-14-2017   -   Original Discussion by galboski
galboski's Unix or Linux Image
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 08:17 PM.. Reason: Add ICODE tags.
Sponsored Links
Old Unix and Linux 05-14-2017   -   Original Discussion by galboski
Don Cragun's Unix or Linux Image
Don Cragun Don Cragun is offline Forum Staff  
Join Date: Jul 2012
Last Activity: 13 December 2017, 3:56 AM EST
Location: San Jose, CA, USA
Posts: 10,772
Thanks: 590
Thanked 3,771 Times in 3,219 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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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-10-2016 12:11 AM
Multi head/multi window hello world advorak Programming 2 06-09-2015 03: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 11:13 AM
Split file based on multi valued attributes snukala Solaris 7 02-06-2011 02:16 AM

All times are GMT -4. The time now is 12:35 PM.