Skip to content

Instantly share code, notes, and snippets.

@ten0s
Created February 29, 2016 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ten0s/4cd1050aebf7054008ac to your computer and use it in GitHub Desktop.
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
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