Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 30 lines (23 sloc) 0.557 kB
dc6faae @krestenkrab Rename erl.sh to ej; provide nicer console title for ejc.
krestenkrab authored
1 #!/bin/bash
2
3 ## Script to run the ERLConsole
4 ##
5
075603f @goj Shell script cleanup
goj authored
6 EJC_CMD=`which "$0"`
fe03ddf @krestenkrab More script clean up; bsd/macosx does not support -m option to readlink.
krestenkrab authored
7 while LINK=`readlink "$EJC_CMD"`; do EJC_CMD=$LINK; done
075603f @goj Shell script cleanup
goj authored
8 EJC_DIR=`dirname "$EJC_CMD"`
dc6faae @krestenkrab Rename erl.sh to ej; provide nicer console title for ejc.
krestenkrab authored
9
fe03ddf @krestenkrab More script clean up; bsd/macosx does not support -m option to readlink.
krestenkrab authored
10 source $EJC_DIR/env_cfg
dc6faae @krestenkrab Rename erl.sh to ej; provide nicer console title for ejc.
krestenkrab authored
11
4c06913 @krestenkrab Update defaults for ej command to pass -Derj.threads=50 (each active …
krestenkrab authored
12 ## -Derjang.debug.port=true
9cfae75 @krestenkrab Add support for +S (#schedulers) and +A (#async threads) flags to mai…
krestenkrab authored
13 ## -Derjang.debug.inet=true
14 ## -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
15
4c06913 @krestenkrab Update defaults for ej command to pass -Derj.threads=50 (each active …
krestenkrab authored
16
17 exec java \
9cfae75 @krestenkrab Add support for +S (#schedulers) and +A (#async threads) flags to mai…
krestenkrab authored
18 -server \
2b50d57 @krestenkrab Update ej/ejc commands
krestenkrab authored
19 -Xmx1g -Xss50m \
4c06913 @krestenkrab Update defaults for ej command to pass -Derj.threads=50 (each active …
krestenkrab authored
20 -XX:PermSize=128m \
fe03ddf @krestenkrab More script clean up; bsd/macosx does not support -m option to readlink.
krestenkrab authored
21 -jar $EJC_DIR/erjang-0.1.jar \
2b50d57 @krestenkrab Update ej/ejc commands
krestenkrab authored
22 \
23 -progname ej \
dc6faae @krestenkrab Rename erl.sh to ej; provide nicer console title for ejc.
krestenkrab authored
24 -home $HOME \
25 -root $ERL_ROOT \
9cfae75 @krestenkrab Add support for +S (#schedulers) and +A (#async threads) flags to mai…
krestenkrab authored
26 +A 10 \
27 +S 1 \
4eed71d @krestenkrab Fix bug in the main ej script; command line args were not getting pas…
krestenkrab authored
28 +e $ERTS_VSN \
777ff9c Small bugfixes, some for bugs found using triq (ets_test.erl).
Erik Søe Sørensen authored
29 "$@"
Something went wrong with that request. Please try again.