Created
February 29, 2016 15:15
-
-
Save ten0s/4cd1050aebf7054008ac to your computer and use it in GitHub Desktop.
Run an erlang script without global erlang installed, but with a release's erts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL | |
===== | |
$ scp util.es remote:/home/user/ | |
REMOTE | |
====== | |
$ pwd | |
/home/user | |
$ ./util.es | |
/usr/bin/env: escript: No such file or directory | |
$ export PATH=$PATH:/home/user/erl_app/erts-7.1/bin/ | |
$ ./util.es | |
{"init terminating in do_boot",{'cannot get bootfile','start_clean.boot'}} | |
Crash dump is being written to: erl_crash.dump...done | |
init terminating in do_boot () | |
LOCAL | |
===== | |
$ scp /opt/r18.1/bin/start_clean.boot remote:/home/user/ | |
REMOTE | |
====== | |
$ ./util.es | |
Usage: util.es |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment