<div dir="ltr">2008/9/3 Sebastian Bello <span dir="ltr"><<a href="mailto:sebastian.bello@inswitch.us">sebastian.bello@inswitch.us</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi list,<br>
<br>
I need to execute an Erlang function from within Perl code, what do you<br>
suggest?<br>
Thanks,<br>
Sebastian-</blockquote><div><br>Try 'erl -man erl_call'<br><br>Extract from the man page:<br><br>NAME<br> erl_call - Call/Start a Distributed Erlang Node<br><br>DESCRIPTION<br> erl_call makes it possible to start and/or communicate with a dis-<br>
tributed Erlang node. It is built upon the erl_interface library as an<br> example application. Its purpose is to use an Unix shell script to<br> interact with a distributed Erlang node. It performs all communication<br>
with the Erlang rex server, using the standard Erlang RPC facility. It<br> does not require any special software to be run at the Erlang target<br> node.<br><br> The main use is to either start a distributed Erlang node or to make an<br>
ordinary function call. However, it is also possible to pipe an Erlang<br> module to erl_call and have it compiled, or to pipe a sequence of<br> Erlang expressions to be evaluated (similar to the Erlang shell).<br>
<br> Options, which cause stdin to be read, can be used with advantage as<br> scripts from within (Unix) shell scripts. Another nice use of erl_call<br> could be from (http) CGI-bin scripts.<br><br> <br>
</div></div></div>