Commit | Line | Data |
---|---|---|
15ee0f23 SK |
1 | #! /bin/sh |
2 | ||
3 | ||
223cc9ca | 4 | Y=`stty size | awk '{print $1 - 3}'` # Reserve 3 charcters for status bar |
15ee0f23 SK |
5 | X=`stty size | awk '{print $2}'` |
6 | ||
f40adb05 SK |
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 | ||
15ee0f23 | 12 | |
d2a0e2f9 | 13 | erl \ |
f40adb05 | 14 | +P $NUM_PROCESSES \ |
5c65ee24 | 15 | -name life_001@localhost \ |
d2a0e2f9 SK |
16 | -noshell \ |
17 | -pa ebin \ | |
18 | -life x $X y $Y \ | |
19 | -s life bang |