<div>Hi Matthew,</div><div><br></div>erl_call seems more convenient to me.<div><br></div><div>Thank you! Will give it a try.<br><div><br clear="all"><div>Best regards,</div><div>Max</div><br><br>
<br><br><div class="gmail_quote">On Fri, Dec 30, 2011 at 11:00 PM, Matthew Evans <span dir="ltr"><<a href="mailto:mattevans123@hotmail.com">mattevans123@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div><div dir="ltr">You could try erl_call<br><br><a href="http://www.erlang.org/doc/man/erl_call.html" target="_blank">http://www.erlang.org/doc/man/erl_call.html</a><br><br>Or escript called from bash.<br><br><a href="http://www.erlang.org/doc/man/escript.html" target="_blank">http://www.erlang.org/doc/man/escript.html</a><br>

<br>erl_call is normally hidden in the Erlang release somewhere, not in the default path.<br><br><hr>From: <a href="mailto:bourinov@gmail.com" target="_blank">bourinov@gmail.com</a><br>Date: Fri, 30 Dec 2011 22:29:14 +0400<br>

To: <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>Subject: [erlang-questions] Erlang program and bash/Munin communication<div><div class="h5"><br><br><div>Hi Dear Erlangers!</div>

<div><br></div><div>I want to plot some stats from my Erlang program in munin (<a href="http://munin-monitoring.org/" target="_blank">http://munin-monitoring.org/</a>). For that I have to call it somehow from bash/sh script. Standart munin setup calls the script every 5 minutes.</div>



<div><br></div><div>So, I want to know, what is a best way to establish one way (Erlang -> Bash) communication?</div><div><br></div><div>One of approaches could be when Erlang program writes file to somewhere like /var/run/erl-prog and bash script reads it.</div>



<div><br></div><div>Is there are any other simpler options available?</div><div><br></div><div>p.s. I know that ejabberd has some interface to bash, but its code too complex to my task.</div><br clear="all"><div>Best regards,</div>



<div>Max</div><br><br>
<br></div></div>_______________________________________________
erlang-questions mailing list
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a>                                     </div></div>
</blockquote></div><br></div></div>