[erlang-questions] Erlang program and bash/Munin communication
Matthew Evans
mattevans123@REDACTED
Fri Dec 30 20:00:47 CET 2011
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: bourinov@REDACTED
Date: Fri, 30 Dec 2011 22:29:14 +0400
To: erlang-questions@REDACTED
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
erlang-questions@REDACTED
http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20111230/71c54b9e/attachment.htm>
More information about the erlang-questions
mailing list