[erlang-questions] Erlang program and bash/Munin communication
Max Bourinov
bourinov@REDACTED
Sun Jan 1 18:54:13 CET 2012
Ah pipes! After new year celebration I didn't get what is pipe.
Thank you for the tip. I try it out!
Sent from my iPhone
On 01.01.2012, at 17:45, 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
>>>
>>> Markus
>>>
>>
>> Hi Markus, can you provide more detail or introduction link?
>>
>
> http://www.linuxjournal.com/article/2156
>
> an good old article, but still true..
>
> Markus
>
>
>
>
>> Best regards,
>> Max
>>
>>>
>>>
>>>> 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
>>>
>>
>
More information about the erlang-questions
mailing list