[erlang-questions] Erlang program and bash/Munin communication

Max Bourinov <>
Sat Dec 31 10:57:33 CET 2011


If somebody is interested where is erl_call from R15B on OSX, check out
this path:

/usr/local/lib/erlang/lib/erl_interface-3.7.6/bin/erl_call

Best regards,
Max




On Fri, Dec 30, 2011 at 11:17 PM, Max Bourinov <> wrote:

> Hi Matthew,
>
> erl_call seems more convenient to me.
>
> Thank you! Will give it a try.
>
> Best regards,
> Max
>
>
>
>
> On Fri, Dec 30, 2011 at 11:00 PM, Matthew Evans <>wrote:
>
>> You could try erl_call
>>
>> http://www.erlang.org/doc/man/erl_call.html
>>
>> Or escript called from bash.
>>
>> http://www.erlang.org/doc/man/escript.html
>>
>> erl_call is normally hidden in the Erlang release somewhere, not in the
>> default path.
>>
>> ------------------------------
>> From: 
>> Date: Fri, 30 Dec 2011 22:29:14 +0400
>> To: 
>> Subject: [erlang-questions] Erlang program and bash/Munin communication
>>
>>
>> Hi Dear Erlangers!
>>
>> I want to plot some stats from my Erlang program in munin (
>> http://munin-monitoring.org/). For that I have to call it somehow from
>> bash/sh script. Standart munin setup calls the script every 5 minutes.
>>
>> So, I want to know, what is a best way to establish one way (Erlang ->
>> Bash) communication?
>>
>> One of approaches could be when Erlang program writes file to somewhere
>> like /var/run/erl-prog and bash script reads it.
>>
>> Is there are any other simpler options available?
>>
>> p.s. I know that ejabberd has some interface to bash, but its code too
>> complex to my task.
>>
>> Best regards,
>> Max
>>
>>
>>
>> _______________________________________________ erlang-questions mailing
>> list 
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20111231/490349d2/attachment.html>


More information about the erlang-questions mailing list