Erlang Erl Load File
The erl_prim_loader module interprets the following command line flags: -loader Loader Specifies the name of the loader used by erl_prim_loader. Loader can be efile (use the local file system), or inet (load using the boot_server on another Erlang node). If Loader is user defined, the defined Loader port program is started. If the -loader flag is omitted, it defaults to efile. -loader_debug Makes the efile loader write some debug information, such as the reason for failures, while it handles files. -hosts Hosts Specifies which other Erlang nodes the inet loader can use.
This flag is mandatory if the -loader inet flag is present. On each host, there must be on Erlang node with the erl_boot_server which handles the load requests. Hosts is a list of IP addresses (hostnames are not acceptable).
Erl_ddll Module. Erl..so files on most Unix systems and.ddl files on Windows. An Erlang linked-in driver must provide specific interfaces to. Its scope ends at the end of the file. Arguments following an -extra flag are moved on the command line into the -extra section, i.e. The end of the command line following after an -extra flag. The initial Erlang shell does not read user input until the system boot procedure has been completed (Erlang 5.4 and. Add your functions to it, save it to disk, run erl from the same directory and execute the compile command: Eshell V5. Mashup 1.4.2 Zip Download. 9 (abort with ^G) 1>c(module_name). Ok 1>module_name:hello(). You may keep the shell running while you're editing the file. Just don't forget to execute c(module_name) to load the latest. This section describes compilation and code loading in Erlang/OTP with. The compiler can generate a new file that.%Initialize the Info term erlang:load.
-id Id Specifies the identity of the Erlang runtime system. If the system runs as a distributed node, Id must be identical to the name supplied with the -sname or -name distribution flags. -setcookie Cookie Specifies the cookie of the Erlang runtime system.
This flag is mandatory if the -loader inet flag is present.
What you probably want is erl -s module_name function_name Note that you never specify the erlang file in the erl command like you did there in your example. The Erlang VM loads all modules in the codepath. That includes local directory. From: -run Mod [Func [Arg1, Arg2.]] (init flag) Makes init call the specified function. 5 Meter Air Rifle Target Pdf Printables. Func defaults to start.
If no arguments are provided, the function is assumed to be of arity 0. Otherwise it is assumed to be of arity 1, taking the list [Arg1,Arg2.] as argument. All arguments are passed as strings. -s Mod [Func [Arg1, Arg2.]] (init flag) Makes init call the specified function.
Func defaults to start. If no arguments are provided, the function is assumed to be of arity 0. Otherwise it is assumed to be of arity 1, taking the list [Arg1,Arg2.] as argument.
All arguments are passed as atoms.