Revision | 8899a3c74c53f2aff554cf008b0a6b3e3c7dc464 (tree) |
---|---|
Time | 2009-02-12 02:12:19 |
Author | iselllo |
Commiter | iselllo |
I added a code which automatically selects jobs from a pool and run a certain number simultaneously.
@@ -0,0 +1,25 @@ | ||
1 | +#!/bin/bash | |
2 | + | |
3 | +#run the script with the following command | |
4 | + | |
5 | +# cat my_list.txt | xargs -n 1 -P 4 ./my_script.sh | |
6 | + | |
7 | + | |
8 | + | |
9 | + | |
10 | +# where: | |
11 | +# -n = number of args to pass to myscript.bash (i.e. we want one at a time) | |
12 | +# -P = number of process to run simultaneouly (i.e. w in this case) | |
13 | + | |
14 | +# and my_list.txt is a list of directories with the applications I want to run | |
15 | +# e.g. | |
16 | + | |
17 | +# /media/disk/diffusion-chain/chain-8-eta-1/1 | |
18 | +# /media/disk/diffusion-chain/chain-8-eta-1/2 | |
19 | +# /media/disk/diffusion-chain/chain-8-eta-1/3 | |
20 | + | |
21 | + | |
22 | + | |
23 | + | |
24 | +cd $1 | |
25 | +./Espresso test_bond_angle_8_monomers.tcl |