[erlang-questions] Erlang program and bash/Munin communication
Sat Dec 31 15:16:19 CET 2011
Ejabberd uses erlang port for running the script. In which external
script reads from stdin and writes to stdout.
On Sat, Dec 31, 2011 at 6:53 PM, Max Bourinov <bourinov@REDACTED> wrote:
> Sent from my iPhone
> On 31.12.2011, at 15:18, greim <greim@REDACTED> wrote:
>> Am 30.12.2011 19:29, schrieb Max Bourinov:
>>> 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.
>> i think a named pipe (mkfifo) is better
> Hi Markus, can you provide more detail or introduction link?
> Best regards,
>>> 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,
>>> erlang-questions mailing list
> erlang-questions mailing list
More information about the erlang-questions