Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | ||
3 | ||
4 | Y=`expr \`stty size | awk '{print $1}'\` - 3` | |
5 | X=`stty size | awk '{print $2}'` | |
6 | ||
7 | NUM_BEAM_PROCESSES=31 | |
8 | NUM_LIFE_CELLS=`expr $X \* $Y` | |
9 | NUM_LIFE_PROCESSES=`expr $NUM_LIFE_CELLS + 4` | |
10 | NUM_PROCESSES=`expr $NUM_BEAM_PROCESSES + $NUM_LIFE_PROCESSES` | |
11 | ||
12 | ||
13 | erl \ | |
14 | +P $NUM_PROCESSES \ | |
15 | -name life_001@localhost \ | |
16 | -noshell \ | |
17 | -pa ebin \ | |
18 | -life x $X y $Y \ | |
19 | -s life bang |