Skip to content

Instantly share code, notes, and snippets.

@hntrmrrs
Created May 24, 2009 11:40
Show Gist options
  • Save hntrmrrs/117069 to your computer and use it in GitHub Desktop.
Save hntrmrrs/117069 to your computer and use it in GitHub Desktop.
#!/bin/bash
FOO="Hello, world"
FOO_ARGS=" -kernel bar \"${FOO}\" "
exec erl -noshell ${FOO_ARGS} -eval 'io:format("~p~n", [application:get_env(kernel, bar)]), halt(0).'
#exec erl -noshell -kernel bar '"Hello, world"' -eval 'io:format("~p~n", [application:get_env(kernel, bar)]), halt(0).'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment