I have a remsh
to working Erlang application:
1> application:which_applications().
[{ssl,"Erlang/OTP SSL application","5.3.6"},
{public_key,"Public key infrastructure","0.22.1"},
{crypto,"CRYPTO","3.4.1"},
{asn1,"The Erlang ASN1 compiler version 3.0.2","3.0.2"},
{stdlib,"ERTS CXC 138 10","2.2"},
{kernel,"ERTS CXC 138 10","3.0.3"}]
My question is: How can I save beam files to another place at the file system?
For each module you want to save, call
code:get_object_code/1
to get the module's object code as a binary, then usefile:write_file/2
to save that binary to the file system.