<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks Bengt and Chandru.<br>
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?<br>
Sebastian-<br>
<br>
Chandru escribió:
<blockquote
cite="mid:b447a30d0809030811i55d083e7p4d79d3977907208b@mail.gmail.com"
type="cite">
<div dir="ltr">2008/9/3 Sebastian Bello <span dir="ltr"><<a
moz-do-not-send="true" 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>
</blockquote>
<br>
</body>
</html>