[erlang-questions] Loaded module version on a diskless node

Serge Aleynikov saleyn@REDACTED
Thu Aug 9 13:38:29 CEST 2007


How about this:

version(Module) ->
     Attrs = proplists:get_value(attributes, Module:module_info()),
     [Vsn] = proplists:get_value(vsn, Atts),
     Vsn.


Joel Reymont wrote:
> Folks,
> 
> I need to get the version of a module on a diskless node.
> 
> How does beam_lib:version/1 work in this scenario? Will it ask  
> erl_prim_loader to grab the module code and get the version from there?
> 
> If the module has been recompiled on the boot server after it was  
> fetched by the diskless node then the module versions will be  
> different. Will the boot server version be reported then?
> 
> I thought there was a way to ask for the version of the module loaded  
> into memory but can't find the option to do this.
> 
> 	Thanks, Joel
> 
> --
> http://wagerlabs.com
> 
> 
> 
> 
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
> 




More information about the erlang-questions mailing list