[erlang-questions] Executing an Erlang function from Perl
Fri Sep 5 19:41:15 CEST 2008
2008/9/5 Sebastian Bello <>:
> Thanks Bengt and Chandru.
> An additional question: if I know the full path to a .beam file, and that
> path has no been added with a -pa for example, what would be the way to
> execute a function of that module?
Dir = filename:dirname(Beam),
> Chandru escribió:
> 2008/9/3 Sebastian Bello <>
>> Hi list,
>> I need to execute an Erlang function from within Perl code, what do you
> Try 'erl -man erl_call'
> Extract from the man page:
> erl_call - Call/Start a Distributed Erlang Node
> erl_call makes it possible to start and/or communicate with a
> tributed Erlang node. It is built upon the erl_interface library as
> example application. Its purpose is to use an Unix shell script
> interact with a distributed Erlang node. It performs all
> with the Erlang rex server, using the standard Erlang RPC facility.
> does not require any special software to be run at the Erlang
> The main use is to either start a distributed Erlang node or to make
> ordinary function call. However, it is also possible to pipe an
> module to erl_call and have it compiled, or to pipe a sequence
> Erlang expressions to be evaluated (similar to the Erlang shell).
> Options, which cause stdin to be read, can be used with advantage
> scripts from within (Unix) shell scripts. Another nice use of
> could be from (http) CGI-bin scripts.
> erlang-questions mailing list
More information about the erlang-questions