[erlang-questions] running release handler from -eval or -run

Michael McDaniel erlangy@REDACTED
Wed May 20 23:48:55 CEST 2009


try ...

erl -eval 'application:start(sasl) , release_handler:which_releases(), init:st
op()'

The clue is in the release_handler documentation where it says it is
a process belonging to the SASL application.  And the error message
below saying there is noproc, {gen_server ... .

~M


On Wed, May 20, 2009 at 02:34:37PM -0700, Joe Williams wrote:
> I am attempting to run release handler commands using -eval (or -run) 
> and receive the following error. Running the commands in the erlang 
> terminal work fine.
> 
> > $ erl -eval 'release_handler:which_releases()'
> > Erlang R13B (erts-5.7.1) [source] [64-bit] [smp:2:2] [rq:2] 
> > [async-threads:0] [hipe] [kernel-poll:false]
> >
> > Eshell V5.7.1  (abort with ^G)
> > 1> {"init terminating in 
> > do_boot",{noproc,{gen_server,call,[release_handler,which_releases]}}}
> >
> > Crash dump was written to: erl_crash.dump
> > init terminating in do_boot ()
> 
> Running something like inets:start or application:which_applications 
> works as expected:
> 
> > $ erl -eval 'inets:start()'
> > Erlang R13B (erts-5.7.1) [source] [64-bit] [smp:2:2] [rq:2] 
> > [async-threads:0] [hipe] [kernel-poll:false]
> >
> > Eshell V5.7.1  (abort with ^G)
> > 1>
> 
> Any idea what might be causing this?
> 
> 
> Thanks.
> 
> -Joe
> 
> -- 
> Name: Joseph A. Williams
> Email: joe@REDACTED
> Blog: http://www.joeandmotorboat.com/
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions

-- 
Michael McDaniel
Portland, Oregon, USA
http://autosys.us




More information about the erlang-questions mailing list