<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>You could try erl_call<br><br>http://www.erlang.org/doc/man/erl_call.html<br><br>Or escript called from bash.<br><br>http://www.erlang.org/doc/man/escript.html<br><br>erl_call is normally hidden in the Erlang release somewhere, not in the default path.<br><br><hr>From: bourinov@gmail.com<br>Date: Fri, 30 Dec 2011 22:29:14 +0400<br>To: erlang-questions@erlang.org<br>Subject: [erlang-questions] Erlang program and bash/Munin communication<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>_______________________________________________
erlang-questions mailing list
erlang-questions@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions </div></body>
</html>