The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Running UNIX Commands from C zainab High Level Programming 2 04-14-2008 08:35 PM
running commands from outside of bash rakabarp Shell Programming and Scripting 3 03-13-2008 03:40 AM
How to disable running commands from vi Umesh_Sharoff Shell Programming and Scripting 1 07-14-2006 09:05 AM
running commands from script owijust Shell Programming and Scripting 2 01-09-2006 03:12 PM
running start up commands skotapal UNIX for Dummies Questions & Answers 3 12-03-2002 04:31 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-24-2008
Registered User
 

Join Date: Jul 2007
Location: Cloud 9
Posts: 69
Running a queued set of commands?

Is there a way I can queue something like 800 commands in a BASH (or anything else for that matter) script?

I just basically don't want to have 800 commands pound my system at once. So far I have been just running the list (dynamically generated) through a loop, and executing every command in the background with nice in front. Only problem is that with 20 this wasn't hurting my server... at 800 I'm betting I would see CPU contention...

I'm just looking for a way to 'nicely' run a series of commands that take about 1-5 seconds a piece, executing no more than like 10 at a time (unless you have a better idea?)

Any help would be AWESOME!

- J
Reply With Quote
Forum Sponsor
  #2  
Old 04-25-2008
aigles's Avatar
Registered User
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,212
Take a look at this post Background Process Shell Scripting

Jean-Pierre.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:09 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0