Re: How to do 100 simulation runs, 7 at a time
cosmo <[email protected]>
| Newsgroups | gmane.linux.cluster.openmosix.general |
|---|---|
| Message-ID | <1144814791.19652.31.camel@cortex> |
Id write a simple bash script - thats all that should be needed
typing the following on a commandline would execute one command after
another, sequentially
command1 && command2 && command3 && ...etc
Or, you could write a bash script
#!/bin/bash
command1
command2
command3
etc
which should execute commands sequentially, ie, the next command should
not execute until the first returns successful status - correct me if my
understanding is wrong.
So, consider writing a single script that takes the following form, and
run 7 of these scripts at once (perhaps executed from a mother script
that takes the number of an argument). This is just psuedocode mind you.
subroutine{
pick some job from a queue, some list or text file or something
if no jobs are left in queue, exit this script
remove this job from queue
run the job
subroutine - call this function again
}
main{
subroutine
done
}
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642