Computing.Net > Forums > Unix > Batch command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch command

Reply to Message Icon

Name: nauj
Date: May 30, 2005 at 11:20:53 Pacific
OS: AIX 5.1
CPU/Ram: IBM
Comment:

Hi,

I want to use batch command in order to run a group of jobs in parallel. This jobs are heavy jobs and using batch command I want that some of the jobs wait for ending of other jobs and the load of the machine get lower.

I'm submitting jobs like that:
nohup script1.sh par1 par2 &
nohup script2.sh par1 par2 &
nohup script3.sh par1 par2 &
nohup script4.sh par1 par2 &
nohup script5.sh par1 par2 &

In this way all of the jobs start at same time and machine CPU go to 100 %. Using batch commmand I want that some of the scripts waits for a percent of use of CPU lower.

Any advice will be greatly apreciatted



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: May 31, 2005 at 04:05:38 Pacific
Reply:

Have a look at "batch" - man batch.
It will queue jobs in the background allowing them to run when the load allows.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Batch command

shell script like batch www.computing.net/answers/unix/shell-script-like-batch/6268.html

2 NewB questions www.computing.net/answers/unix/2-newb-questions/5913.html

command line restore windows 2000 www.computing.net/answers/unix/command-line-restore-windows-2000/4565.html